Documentation ¶
Overview ¶
Package metadata allows for the definition of metadata such as headers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeContext ¶
MergeContext merges metadata to existing metadata, overwriting if specified
Types ¶
type MD ¶
MD is our way of representing request headers internally. They're used at the RPC level and translate back and forth from Transport headers.
func FromContext ¶
FromContext returns metadata from the given context
type Manager ¶
type Manager struct { Context *broker.Context Resource string Params specs.Header Keys map[string]struct{} }
Manager represents a metadata manager for a given resource
func NewManager ¶
NewManager constructs a new metadata manager for the given resource.
Click to show internal directories.
Click to hide internal directories.