Documentation ¶
Index ¶
- func Connect(addr string) error
- func ConnectList(addrs []string) error
- func ConnectLookupd(addr string) error
- func ConnectLookupdList(addrs []string) error
- func Register(topic, channel string, maxInFlight int, fnc Handler) error
- func Start(debug bool)
- type Consumer
- func (c *Consumer) Connect(addr string) error
- func (c *Consumer) ConnectList(addrs []string) error
- func (c *Consumer) ConnectLookupd(addr string) error
- func (c *Consumer) ConnectLookupdList(addrs []string) error
- func (c *Consumer) Register(topic, channel string, maxInFlight int, handler Handler) error
- func (c *Consumer) Start(debug bool) error
- type Handler
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectList ¶
ConnectList - Look for Consumer.ConnectList() (on default consumer)
func ConnectLookupd ¶
ConnectLookupd - Look for Consumer.ConnectLookupd() (on default consumer)
func ConnectLookupdList ¶
ConnectLookupdList - Look for Consumer.ConnectLookupdList() (on default consumer)
Types ¶
type Consumer ¶
type Consumer struct { Logger *nsqlog.NsqLogger LogLevel *nsq.LogLevel // contains filtered or unexported fields }
Consumer - NSQ messages consumer.
var DefaultConsumer *Consumer
Shortcuts for apps using only one consumer
func (*Consumer) ConnectList ¶
ConnectList - Connects all readers to NSQ instances
func (*Consumer) ConnectLookupd ¶
ConnectLookupd - Connects all readers to NSQ lookupd
func (*Consumer) ConnectLookupdList ¶
ConnectLookupdList - Connects all readers to NSQ lookupd instances
type Message ¶
type Message struct {
*nsq.Message
}
Message - Inherent nsq
func (*Message) GiveUp ¶
func (m *Message) GiveUp()
GiveUp - Finish message with success state because message never will be possible to process
Click to show internal directories.
Click to hide internal directories.