Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPublisher ¶
NewPublisher will initiate a new nsq producer.
func NewSubscriber ¶
func NewSubscriber(topic, channel string, nsqlookupds []string, concurrency int, h gonsq.Handler) (pubsub.Subscriber, error)
NewSubscriber will initiate an nsq consumer.
Types ¶
type NoopNSQLogger ¶
type NoopNSQLogger struct{}
NoopNSQLogger allows us to pipe NSQ logs to dev/null. The default NSQ logger is great for debugging, but did not fit our normally well structured JSON logs. Luckily NSQ provides a simple interface for injecting your own logger.
Click to show internal directories.
Click to hide internal directories.