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 error handler plugin for echo server.
func NewErrorHandler ¶
func NewErrorHandler() *ErrorHandler
NewErrorHandler returns a new error handler plugin with default options.
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
}
Options error handler plugin for echo server options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals options based a given key path.
Click to show internal directories.
Click to hide internal directories.