Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContextValue ¶
AddContextValue adds a key value pair to the logging context. If none is defined it will be added.
Types ¶
type ContextValues ¶
type ContextValues map[string]interface{}
ContextValues describes the context values.
func FromContext ¶
func FromContext(ctx context.Context) *ContextValues
FromContext returns the context values of a ctx. If nothing is defined nil is returned.
func NewContext ¶
func NewContext(parent context.Context) (context.Context, *ContextValues)
Click to show internal directories.
Click to hide internal directories.