Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageConsumer ¶
MessageConsumer is an interface defining operations that a basic SQS message consumer should implement.
type MessageHandler ¶
MessageHandler is a handy type to make a function a message consumer.
func DecorateConsumeFn ¶
func DecorateConsumeFn(f func(*sqs.Message) error) MessageHandler
DecorateConsumeFn is a decorator for consumer function.
It handles the WaitGroup, receives message from the input channel. The consumer just focuses on the task of consuming a SQS message. To delete a message or not, it fully depends on the consumer itself.
Click to show internal directories.
Click to hide internal directories.