Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCtxWithMetadata ¶
func GetCtxWithMetadata(ctxMetadata *CtxMetadata, ctx context.Context) context.Context
GetCtxWithMetadata gets the context with the metadata
Types ¶
type CtxMetadata ¶
type CtxMetadata struct {
Token MetadataField
}
CtxMetadata is the metadata for the context
func NewCtxMetadata ¶
func NewCtxMetadata(token string) *CtxMetadata
NewCtxMetadata creates a new CtxMetadata
type MetadataField ¶
MetadataField is a field in the metadata
Click to show internal directories.
Click to hide internal directories.