Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶ added in v0.11.0
func Handler(h web.ErrorHandlerFunc) web.MiddlewareHandlerFunc
Handler creates a middleware that tries to use the web.Handler interface, and pass any error to the provided ErrorHandler. If no handler is provided, our errors.HandleError is used.
func Recoverer ¶ added in v0.10.0
func Recoverer(h web.ErrorHandlerFunc) web.MiddlewareHandlerFunc
Recoverer creates a middleware to catch panic() and pass it to an ErrorHandler wrapped as *errors.PanicError. If no handler is provided, our errors.HandleError is used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.