Documentation ¶
Overview ¶
Package recover provides recovery for specific routes or for the whole app via middleware. See _examples/recover
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new recovery middleware, it recovers from panics and logs the panic message to the application's logger "Warn" level.
func PanicRecoveryError ¶ added in v12.2.11
func PanicRecoveryError(ctx *context.Context, err any) *context.ErrPanicRecovery
PanicRecoveryError returns a new ErrPanicRecovery error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.