Documentation ¶
Index ¶
- func ExtendedContextWithMetadata[metaType any](baseCtx context.Context, metaKey any, metadata metaType) context.Context
- func ForkContextAsNewWithTimeout(baseCtx context.Context, newTimeout time.Duration) (context.Context, context.CancelFunc)
- func GetContextMetadata[metaType any](baseCtx context.Context, metaKey any) (metaData metaType, isExist bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtendedContextWithMetadata ¶
func ExtendedContextWithMetadata[metaType any](baseCtx context.Context, metaKey any, metadata metaType) context.Context
ExtendedContextWithMetadata add metadata to base context
func ForkContextAsNewWithTimeout ¶
func ForkContextAsNewWithTimeout(baseCtx context.Context, newTimeout time.Duration) (context.Context, context.CancelFunc)
ForkContextAsNewWithTimeout will take base context and create new from it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.