recover

package
v12.2.11 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 5 Imported by: 140

Documentation

Overview

Package recover provides recovery for specific routes or for the whole app via middleware. See _examples/recover

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() context.Handler

New returns a new recovery middleware, it recovers from panics and logs the panic message to the application's logger "Warn" level.

func PanicRecoveryError added in v12.2.11

func PanicRecoveryError(ctx *context.Context, err any) *context.ErrPanicRecovery

PanicRecoveryError returns a new ErrPanicRecovery error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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