Documentation ¶
Overview ¶
Package handler contains the reference interface for a message handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
Func is a function that implements the Handler interface, useful to specify Handlers inline as simple functions.
type Handler ¶
Handler handles incoming messages from the AMQP broker, which are supplied to the application using an amqp.Delivery object.
An Handler is fallible, so it returns an error in case message handling failed.
In that case, the handled message should be negatively-acknowledged, either requeued or rejected, depending on the error value.
Directories ¶
Path | Synopsis |
---|---|
Package router contains a Router interface and Mux, message handler multiplexer, to allow for multiple message handlers to be assigned to multiple queues.
|
Package router contains a Router interface and Mux, message handler multiplexer, to allow for multiple message handlers to be assigned to multiple queues. |
Click to show internal directories.
Click to hide internal directories.