middleware

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRecoveryResp

func WithRecoveryResp[T any](fn func() (T, error)) (result T, err error)

WithRecoveryResp is a helper that recovers from any panic, logs the stack trace, and returns an error to the caller. T must match the response type of your function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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