Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDelay ¶
func WithDelay(d time.Duration) func(*PublishOptions)
WithDelay delays message consumption until the first poll interval after the specified duration
func WithPolling ¶
WithPolling configures the exchange poll interval and batch size
func WithWait ¶
func WithWait() func(*PublishOptions)
WithWait delays message consumption until the next poll interval
Types ¶
type Exchange ¶
type Exchange struct {
// contains filtered or unexported fields
}
Exchange represents a message exchange
type Key ¶
type Key []byte
Key represents a message key
type Options ¶
type Options struct {
PollInterval time.Duration
PollBatchSize int
VisibilityTimeout time.Duration
BadgerOptions badger.Options
OnError func(error)
}
Options represents exchange options
type PublishOptions ¶
PublishOptions represents message publish options
type Queue ¶ added in v0.3.0
type Queue struct {
// contains filtered or unexported fields
}
Queue represents a message queue
func (Queue) Bind ¶ added in v0.3.0
Bind binds the queue to the specified topics A topic may be bound to multiple queues
Click to show internal directories.
Click to hide internal directories.