Documentation
¶
Index ¶
- func MetadataMapstructureHook() mapstructure.DecodeHookFuncType
- type Map
- type Metadata
- func (meta *Metadata) FromHttpHeader(headers http.Header)
- func (meta *Metadata) Get(k string) (any, bool)
- func (meta *Metadata) MarshalJSON() ([]byte, error)
- func (meta *Metadata) MarshalYAML() (interface{}, error)
- func (meta *Metadata) Merge(src *Metadata)
- func (meta *Metadata) Scan(value any) error
- func (meta *Metadata) Set(k string, v any)
- func (meta *Metadata) String() string
- func (meta *Metadata) ToHttpHeader() http.Header
- func (meta *Metadata) UnmarshalJSON(data []byte) error
- func (meta *Metadata) UnmarshalYAML(value *yaml.Node) error
- func (meta *Metadata) Value() (driver.Value, error)
- type Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataMapstructureHook ¶
func MetadataMapstructureHook() mapstructure.DecodeHookFuncType
Types ¶
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
Metadata is a thread-safe key-value store. There are some gotchas when using this struct: json marshalling is supported but all number will be parsed as float64. yaml marshalling is supported but all number will be parsed as int.
func (*Metadata) FromHttpHeader ¶
func (*Metadata) MarshalJSON ¶
func (*Metadata) MarshalYAML ¶
func (*Metadata) ToHttpHeader ¶
func (*Metadata) UnmarshalJSON ¶
func (*Metadata) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.