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.
Click to show internal directories.
Click to hide internal directories.