Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recovery ¶
func Recovery(opts ...Option) middleware.Middleware
Recovery returns a recovery middleware.
Types ¶
type Option ¶
type Option func(*options)
Option is a function that configures the middleware.
func WithHandler ¶
WithHandler returns a new Option that sets the handler.
func WithLogger ¶
WithLogger returns a new Option that sets the logger.
Click to show internal directories.
Click to hide internal directories.