recovery

package
v2.26.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHandler = func(_ context.Context, service, method string, request any, err any) error {
	return fmt.Errorf("service: %s, method: %s, request: %v, error: %v", service, method, request, err)
}

Functions

func New

func New(opts ...Option) jet.Middleware

Types

type HandlerFunc

type HandlerFunc func(ctx context.Context, service, method string, request any, err any) error

type Option

type Option func(*options)

func Handler

func Handler(h HandlerFunc) Option

Jump to

Keyboard shortcuts

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