Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPublisherCount = 16 DefaultSendChannelBufferSize = 1024 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type EventEnvelop ¶
type EventEnvelop struct { // For sending message // Result is an optional channel to receive the result of the message publishing, which is // + nil if message was send successfully // + error if the message couldn't be send // // For receiving message, Result channel is used to acknowledge the processing of message by receiver. // + Receiver sends nil if message is processed successfully // + Receiver sends error if the message cannot be processed Result chan<- error Event }
type MiddleWare ¶
type Option ¶
type Option = func(c *writeGroupConfig)
func WithBufferSize ¶
func WithMiddlewares ¶
func WithMiddlewares(middlewares ...MiddleWare) Option
func WithPublisherCount ¶
type QueueProvider ¶
type Transport ¶
type Transport interface { Send(topic string) (chan<- EventEnvelop, error) Receive(topic string) (<-chan EventEnvelop, error) Shutdown(ctx context.Context) }
func NewTransport ¶
func NewTransport(queueProvider QueueProvider, options ...Option) Transport
Click to show internal directories.
Click to hide internal directories.