Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Subscriber ¶
type Subscriber struct { C *nsq.Consumer Data chan []byte StopChan chan bool TermChan chan os.Signal // contains filtered or unexported fields }
func NewSubscriber ¶
func NewSubscriber(tpc, ch string, addrs *[]string) (*Subscriber, error)
func (*Subscriber) HandleMessage ¶
func (s *Subscriber) HandleMessage(m *nsq.Message) error
func (*Subscriber) Stop ¶
func (s *Subscriber) Stop()
Click to show internal directories.
Click to hide internal directories.