package
0.0.0-20210726101027-7ea25c77a95e
Repository: https://github.com/uw-labs/substrate-tools.git
Documentation: pkg.go.dev

# Functions

NewMessageSource returns a new insurance asynchronous message source, given an AsyncMessageSource.
WithSourceAckBufferSize sets the ack channel buffer size.
WithSourceConsumers sets the number of concurrent source consumers.
WithSourceMsgBufferSize sets the msg channel buffer size.

# Interfaces

MessageSource represents a message source that allows async consumption and relieves the consumer from having to deal with acknowledgements using channels.

# Type aliases

AckFunc is a function to call to send acknowledgement that a message was received.
ConsumerMessageHandler is the callback function type that async message consumers must implement.
MessageSourceOption is a function which sets a MessageSource configuration option.