Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is a type that should be used to store data into context. It is essential to guarantee data context propagation features on logging and distributed tracing.
type ContextKeySet ¶
type ContextKeySet map[ContextKey]any
ContextKeySet is a set of ContextKeys. Developers are capable to use the value of this map freely. Example: Map a ContextKey to an HTTP Request Param.
func (ContextKeySet) Add ¶
func (s ContextKeySet) Add(key ContextKey, value ...any) ContextKeySet
Add creates a new ContextKeySet with the given ContextKey attached.
func (ContextKeySet) Merge ¶
func (s ContextKeySet) Merge(set ContextKeySet) ContextKeySet
Merge merges the given ContextKeySet into the existing one and returns a copy of the result.
Click to show internal directories.
Click to hide internal directories.