Documentation
¶
Index ¶
Constants ¶
View Source
const HeaderID string = "X-Correlation-Id"
HeaderID constant.
Variables ¶
This section is empty.
Functions ¶
func ContextWithID ¶
ContextWithID sets a correlation ID to a context.
func IDFromContext ¶
IDFromContext returns the correlation ID from the context. If no ID is set a new one is generated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.