recoverer

package
v0.1.0-beta-007 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL