Documentation ¶
Overview ¶
Package nsq provides an NSQ broker
Index ¶
- Variables
- func NewBroker(opts ...broker.Option) broker.Broker
- func WithAsyncPublish(doneChan chan *nsq.ProducerTransaction) broker.PublishOption
- func WithConcurrentHandlers(n int) broker.SubscribeOption
- func WithConsumerOpts(consumerOpts []string) broker.Option
- func WithDeferredPublish(delay time.Duration) broker.PublishOption
- func WithLookupdAddrs(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 WithConsumerOpts ¶
func WithDeferredPublish ¶
func WithDeferredPublish(delay time.Duration) broker.PublishOption
func WithLookupdAddrs ¶
func WithMaxInFlight ¶
func WithMaxInFlight(n int) broker.SubscribeOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.