middleware

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandlerCrashedHeader is the header that is set when a handelr panics.
	HandlerCrashedHeader = "X-Handler-Crashed"
)

Variables

This section is empty.

Functions

func PanicRecovery

func PanicRecovery(next amqprpc.HandlerFunc) amqprpc.HandlerFunc

PanicRecovery is a middleware that will handle if a handler in an endpoint causes a panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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