Documentation ¶
Overview ¶
Package metadata is a way of defining message headers
Index ¶
- func Delete(ctx context.Context, k string) context.Context
- func Get(ctx context.Context, key string) (string, bool)
- func MergeContext(ctx context.Context, patchMd Metadata, overwrite bool) context.Context
- func NewContext(ctx context.Context, md Metadata) context.Context
- func Set(ctx context.Context, k, v string) context.Context
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns a single value from metadata in the context
func MergeContext ¶
MergeContext merges metadata to existing metadata, overwriting if specified
func NewContext ¶
NewContext creates a new context with the given metadata
Types ¶
Click to show internal directories.
Click to hide internal directories.