Documentation ¶
Overview ¶
Package nsq provides a Vice implementation for NSQ.
Index ¶
Constants ¶
View Source
const DefaultTCPAddr = "localhost:4150"
DefaultTCPAddr is the default NSQ TCP address.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct { // NewProducer is a func that creates an nsq.Producer. NewProducer func() (*nsq.Producer, error) // NewConsumer is a func that creates an nsq.Consumer. NewConsumer func(name string) (*nsq.Consumer, error) // ConnectConsumer is a func that connects the nsq.Consumer // to NSQ. ConnectConsumer func(consumer *nsq.Consumer) error // contains filtered or unexported fields }
Transport is a vice.Transport for NSQ.
func (*Transport) Done ¶
func (t *Transport) Done() chan struct{}
Done gets a channel which is closed when the transport has successfully stopped.
func (*Transport) Receive ¶
Receive gets a channel on which to receive messages with the specified name.
Click to show internal directories.
Click to hide internal directories.