nsq

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package nsq provides an NSQ broker

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConcurrentHandlers = 1
)

Functions

func NewBroker

func NewBroker(opts ...broker.Option) broker.Broker

func WithAsyncPublish

func WithAsyncPublish(doneChan chan *nsq.ProducerTransaction) broker.PublishOption

func WithConcurrentHandlers

func WithConcurrentHandlers(n int) broker.SubscribeOption

func WithConsumerOpts

func WithConsumerOpts(consumerOpts []string) broker.Option

func WithDeferredPublish

func WithDeferredPublish(delay time.Duration) broker.PublishOption

func WithLookupdAddrs

func WithLookupdAddrs(addrs []string) broker.Option

func WithMaxInFlight

func WithMaxInFlight(n int) broker.SubscribeOption

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL