Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecoveryHandler ¶
type RecoveryHandler struct {
// contains filtered or unexported fields
}
RecoveryHandler wraps a http.Handler and recovers from panics
func NewRecoveryHandler ¶
func NewRecoveryHandler(rootHandler http.Handler, logger golog.Logger) RecoveryHandler
NewRecoveryHandler creates a new RecoveryHandler
func (RecoveryHandler) ServeHTTP ¶
func (r RecoveryHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
ServeHTTP implements http.Handler.ServeHTTP
Click to show internal directories.
Click to hide internal directories.