Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecoveryHandler ¶
RecoveryHandler is HTTP middleware that recovers from a panic, writes a 500, reports the panic, logs the panic and continues to the next handler.
Types ¶
type ErrorReporter ¶
type ErrorReporter interface { Report(errorreporting.Entry) io.Closer }
ErrorReporter reports errors.
type NopErrorReporter ¶
type NopErrorReporter struct{}
NopErrorReporter is a no-op reporter.
func (*NopErrorReporter) Close ¶
func (r *NopErrorReporter) Close() error
Close implements ErrorReporter.
func (*NopErrorReporter) Report ¶
func (r *NopErrorReporter) Report(e errorreporting.Entry)
Report implements ErrorReporter.
Click to show internal directories.
Click to hide internal directories.