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 recoverer plugin from chi options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath returns options from config path.
type Recoverer ¶
type Recoverer struct {
// contains filtered or unexported fields
}
Recoverer struct which represents a recoverer middleware for chi.
func NewRecovererWithConfigPath ¶
NewRecovererWithConfigPath returns a recoverer middleware with options from config path.
func NewRecovererWithOptions ¶
NewRecovererWithOptions returns a recoverer middleware with options.
Click to show internal directories.
Click to hide internal directories.