Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnyErrorMiddleware ¶
func NewAnyErrorMiddleware[T any]() middleware.AnyErrorMiddleware[T]
Types ¶
type Recovery ¶
type Recovery[T any] struct { }
func NewRecovery ¶
func (*Recovery[T]) Exec ¶
func (c *Recovery[T]) Exec(ctx *middleware.AnyErrorContext[T], exec middleware.AnyErrorExecFunc[T], fallbackFunc middleware.AnyErrorReturnFunc[T]) (res T, err error)
Click to show internal directories.
Click to hide internal directories.