recoveryhandler

package
v0.0.0-...-db2b026 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) func(h http.Handler) http.Handler

Types

type Option

type Option func(handler *handler)

Option provides a functional approach to define configuration for a handler; such as setting the logging whether to print stack traces on panic.

func WithLogHandler

func WithLogHandler(fn func(w http.ResponseWriter, r *http.Request, err any)) Option

Jump to

Keyboard shortcuts

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