recoverer

package
v6.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

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(recovered any) 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