Documentation
¶
Index ¶
- func AppendMetadataToOutgoingContext(ctx context.Context, kv ...string) context.Context
- func NewContextWithIncomingHeader(ctx context.Context, head *Header) context.Context
- func NewContextWithOutgoingMetadata(ctx context.Context, md Metadata) context.Context
- func WithOutgoingMetadata(ctx context.Context, md Metadata) context.Context
- type Header
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendMetadataToOutgoingContext ¶
AppendMetadataToOutgoingContext appends key-value pairs to the outgoing context.
func NewContextWithIncomingHeader ¶
NewContextWithIncomingHeader sets the incoming message header to the context.
func NewContextWithOutgoingMetadata ¶
NewContextWithOutgoingMetadata resets any existing outgoing metadata in the context to the one provided.
Types ¶
type Header ¶
func IncomingHeader ¶
IncomingHeader returns an incoming message header from the context (if any).
Click to show internal directories.
Click to hide internal directories.