Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlePanics ¶
func HandlePanics(f RecoverFunc) func(http.Handler) http.Handler
HandlePanics is a middleware which handles a panic and recovers gracefully by calling the RecovererFunc.
Types ¶
type RecoverFunc ¶
type RecoverFunc func(rcv interface{}, stack []byte) http.HandlerFunc
RecoverFunc responds to a HTTP request which ended up panicking.
Click to show internal directories.
Click to hide internal directories.