Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkRead ¶
func BulkRead(messagesCh <-chan *message.Message, limit int, timeout time.Duration) (receivedMessages message.Messages, all bool)
BulkRead reads provided amount of messages from the provided channel, until a timeout occurs or the limit is reached.
func BulkReadWithDeduplication ¶ added in v0.3.0
func BulkReadWithDeduplication(messagesCh <-chan *message.Message, limit int, timeout time.Duration) (receivedMessages message.Messages, all bool)
BulkReadWithDeduplication reads provided number of messages from the provided channel, ignoring duplicates, until a timeout occurs or the limit is reached.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.