Documentation
¶
Index ¶
Constants ¶
View Source
const (
// HeaderKey is the default header key for request ID.
HeaderKey = "X-Request-ID"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() rex.Middleware
New creates a new RequestID middleware with the default configuration.
func WithConfig ¶
func WithConfig(config Config) rex.Middleware
WithConfig creates a new RequestID middleware with the given configuration.
Types ¶
Click to show internal directories.
Click to hide internal directories.