Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶ added in v0.10.0
func ErrorHandler(validate IsError, handler shell.Handler) shell.Middleware
ErrorHandler returns middleware that will intercept all errors returned and execute a handler if the error matches a specified condition.
func ErrorHandlerCaughtError ¶ added in v0.10.0
ErrorHandlerCaughtError returns the error caught by the ErrorHandler middleware to be referenced during the middleware handler.
func Recoverer ¶
func Recoverer() shell.Middleware
Recoverer returns middleware which will allow the shell to recover from a panic The middleware will output the error and stack trace to the ResponseWriter error writer.
Types ¶
Click to show internal directories.
Click to hide internal directories.