middleware

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AckDelivery

func AckDelivery(logFunc amqprpc.LogFunc) amqprpc.ServerMiddlewareFunc

AckDelivery is a middleware that will acknowledge the delivery after the handler has been executed. Any error returned from d.Ack will be passed to the provided logFunc.

func PanicRecovery

func PanicRecovery(onRecovery func(interface{}, context.Context, *amqprpc.ResponseWriter, amqp.Delivery)) amqprpc.ServerMiddlewareFunc

PanicRecovery is a middleware that will recover any panics caused by a handler down the middleware chain. If a panic happens the onRecovery func will be called with the return value from recover().

func PanicRecoveryLogging

func PanicRecoveryLogging(logFunc amqprpc.LogFunc) amqprpc.ServerMiddlewareFunc

PanicRecoveryLogging is a middleware that will recover any panics caused by a handler down the middleware chain. If a panic happens the value will be logged to the provided logFunc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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