package
0.0.0-20210726101027-7ea25c77a95e
Repository: https://github.com/uw-labs/substrate-tools.git
Documentation: pkg.go.dev
# Functions
NewAsyncMessageSink returns a pointer a new AsyncMessageSink.
WithAckBufferSize sets the ack channel buffer size.
WithAckFunc set the AckFunc callback function, which is called for each ack recieved.
WithMsgBufferSize sets the msg channel buffer size.
# Structs
AsyncMessageSink wraps substrate.AsyncMessageSink and provides an interface for interaction with the underlying sink, as well as the capability to flush the message buffer.
# Type aliases
AckFunc is a callback function executed by `Run` for each message succesfully produced.
An AsyncMessageSinkOption is a function which sets an AsyncMessageSink configuration option.