Documentation ¶
Index ¶
- Variables
- func NewBroker(opts ...broker.Option) broker.Broker
- func WithAsyncPublish(doneChan chan *nsq.ProducerTransaction) broker.PublishOption
- func WithConcurrentHandlers(n int) broker.SubscribeOption
- func WithConsumerOptions(consumerOpts []string) broker.Option
- func WithDeferredPublish(delay time.Duration) broker.PublishOption
- func WithLookupdAddress(addrs []string) broker.Option
- func WithMaxInFlight(n int) broker.SubscribeOption
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultConcurrentHandlers = 1
)
Functions ¶
func WithAsyncPublish ¶
func WithAsyncPublish(doneChan chan *nsq.ProducerTransaction) broker.PublishOption
func WithConcurrentHandlers ¶
func WithConcurrentHandlers(n int) broker.SubscribeOption
func WithConsumerOptions ¶
func WithDeferredPublish ¶
func WithDeferredPublish(delay time.Duration) broker.PublishOption
func WithLookupdAddress ¶
func WithMaxInFlight ¶
func WithMaxInFlight(n int) broker.SubscribeOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.