Documentation
¶
Overview ¶
Package errorhandling provides An HTTP decorator which recovers from `panic`
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRecoveryHandler ¶
func DefaultRecoveryHandler(r *http.Request, rw http.ResponseWriter, err interface{})
Types ¶
type RecoveringHandler ¶
type RecoveringHandler struct { http.Handler RecoveryHandler }
func Decorate ¶
func Decorate(delegate http.Handler, recoveryHandler RecoveryHandler) RecoveringHandler
func (RecoveringHandler) ServeHTTP ¶
func (lh RecoveringHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RecoveryHandler ¶
type RecoveryHandler func(*http.Request, http.ResponseWriter, interface{})
Click to show internal directories.
Click to hide internal directories.