Documentation ¶
Overview ¶
Consumer package provides a very thin abstraction around message consuming. It assumes a simple message and consumer interface that can consume messages and acknowledge them
Index ¶
Constants ¶
View Source
const ContextDuration time.Duration = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer interface { // Creates a channel that will receive messages. Each message should be // acknowledged once you're done with it through the Done() method on the // message Consume() (chan Message, error) // Signals the backend to remove this consumer Remove() error }
Represents a consumer
func NewConsumer ¶
Creates a new consumer
Click to show internal directories.
Click to hide internal directories.