Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Enabled bool
}
Options struct which represents requestID plugin from chi options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
type RequestID ¶
type RequestID struct {
// contains filtered or unexported fields
}
RequestID struct which represents a requestID middleware for chi.
func NewRequestIDWithConfigPath ¶
NewRequestIDWithConfigPath returns a new requestID plugin with options from config path.
func NewRequestIDWithOptions ¶
NewRequestIDWithOptions returns a new requestID plugin with options.
Click to show internal directories.
Click to hide internal directories.