Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxInFlight = 9 MaxAttempts = 65531 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // SyncSendMsg is used to send a message to the server SyncSendMsg(topic string, data []byte, delay time.Duration) error // ConsumerMsg is used to consume messages from the server ConsumerMsg(topic, channel string, lookUpAddrs []string, handler nsq.Handler) (*nsq.Consumer, error) // StopProducerList is used to stop the producer list gracefully StopProducerList() }
Client is interface for nsq clusters
type ClientNsq ¶
type ClientNsq struct {
// contains filtered or unexported fields
}
ClientNsq is the client for nsq clusters
func (*ClientNsq) ConsumerMsg ¶
func (s *ClientNsq) ConsumerMsg(topic, channel string, lookUpAddrs []string, handler nsq.Handler) (*nsq.Consumer, error)
ConsumerMsg is used to consume messages from the server
func (*ClientNsq) StopProducerList ¶
func (s *ClientNsq) StopProducerList()
StopProducerList is used to stop the producer list gracefully
Click to show internal directories.
Click to hide internal directories.