recovery

package
v0.0.0-...-01d4da0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownRequest = errors.InternalServer("UNKNOWN", "unknown request error")

Functions

func Recovery

func Recovery(opts ...Option) middleware.Middleware

Types

type HandlerFunc

type HandlerFunc func(ctx context.Context, req, err any) error

type Option

type Option func(*options)

func WithHandler

func WithHandler(h HandlerFunc) Option

Jump to

Keyboard shortcuts

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