Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorHandler ¶
type ErrorHandler struct {
// contains filtered or unexported fields
}
ErrorHandler represents a new error handler plugin for fiber.
func NewErrorHandlerWithConfigPath ¶
func NewErrorHandlerWithConfigPath(path string) (*ErrorHandler, error)
NewErrorHandlerWithConfigPath returns a new error handler plugin with options from config path.
func NewErrorHandlerWithOptions ¶
func NewErrorHandlerWithOptions(options *Options) *ErrorHandler
NewErrorHandlerWithOptions returns a new error handler plugin with options.
type Options ¶
type Options struct {
Enabled bool
Logger struct {
Print4xx bool
Print5xx bool
PrintStackTrace bool
}
}
Options error handler plugin for fiber 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.
Click to show internal directories.
Click to hide internal directories.