Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option configures the behaviour of the ContextMiddleware.
func WithGenerateMissingIDs ¶
WithGenerateMissingIDs instructs the middleware to create ids when headers are absent.
func WithIDGenerator ¶
WithIDGenerator provides a custom generator used when headers are missing.
func WithRequestHeader ¶
WithRequestHeader configures the header used to populate the request id.
func WithTraceHeader ¶
WithTraceHeader configures the header used to populate the trace id.
Click to show internal directories.
Click to hide internal directories.