Documentation ¶
Overview ¶
Package recovering implements a middleware for recovering from panics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v0.1.1
type Option func(*Options)
Option is a function that configures the middleware via the functional options pattern.
func WithStackTrace ¶
func WithStackTrace() Option
WithStackTrace configures whether to dump the stack trace after recovering. See the GOTRACEBACK environment variable (https://pkg.go.dev/runtime#hdr-Environment_Variables) on how to configure the stack trace level.
Click to show internal directories.
Click to hide internal directories.