Documentation
¶
Overview ¶
Package correlation provides a middleware for adding correlation ids to HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilOption = errors.New("option cannot be nil")
ErrNilOption is returned when an option is nil.
Functions ¶
func New ¶
func New(options ...func(*Handler) error) (defs.Middleware, error)
New generates a new correlation-id-enriching middleware.
func WithLogLevel ¶
WithLogLevel configures the log level to use with the logger.
Types ¶
Click to show internal directories.
Click to hide internal directories.