Documentation
¶
Index ¶
Constants ¶
View Source
const ( RequestIDHeader = "X-Request-Id" CorrelationIDHeader = "X-Correlation-Id" CausationIDHeader = "X-Causation-Id" )
Request tracking
Variables ¶
This section is empty.
Functions ¶
func RequestContext ¶
RequestContext is an http.Handler middleware that sets the id, correlation, and causation ids into context
func SetResponseHeaders ¶ added in v0.0.2
func SetResponseHeaders(ctx context.Context, w http.ResponseWriter)
SetResponseHeaders puts the id, correlation, and causation ids into the outgoing http response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.