Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SimpleRecovery ¶
type SimpleRecovery struct { }
SimpleRecovery is a an http.Handler that only reports a 500 status code without rendering the stacktrace.
func (*SimpleRecovery) ServeHTTP ¶
func (recovery *SimpleRecovery) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.Handler)
ServeHTTP is the implementation of the standard http.Handler interface that will only report a Internal Server Error
type StackTraceRecovery ¶
type StackTraceRecovery struct {
// contains filtered or unexported fields
}
StackTraceRecovery is intended for development and renders a stacktrace of where the panic occurred.
func (*StackTraceRecovery) ServeHTTP ¶
func (recovery *StackTraceRecovery) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.Handler)
ServeHTTP is the implementation of the standard http.Handler interface that will render a stacktrace.
Click to show internal directories.
Click to hide internal directories.