Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer interface {
Consume(context.Context, HandlerFunc) error
}
Consumer of messages from a message queue
type HandlerFunc ¶
HandlerFunc for the consumer
type Message ¶
type Message interface { // Ack nowledges and accepts a message Ack() // Nack (not acklowdges) a message and requeue it Nack() // Data returns the byte data of a message Data() []byte }
Message of an event. The message has to be abstracted to be used in an business environment, so that a possible switch to a different message queue is possible in the future.
Click to show internal directories.
Click to hide internal directories.