recovery

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(stackTrace bool, errorHandler ...func(err error)) egor.Middleware

Panic recovery middleware. If stack trace is true, a stack trace will be logged. If errorHandler is passed, it will be called with the error. No response will be sent to the client. Otherwise the error will be logged and sent with a 500 status code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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