Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleMessage ¶
func HandleMessage(message *nsq.Message) error
Types ¶
type PublisherManager ¶
type PublisherManager struct {
Publisher *nsq.Producer
}
func NewPublisherManager ¶
func NewPublisherManager(publisher *nsq.Producer) *PublisherManager
func (*PublisherManager) PushToNsq ¶
func (p *PublisherManager) PushToNsq(id int64) error
type SubscriberManager ¶
type SubscriberManager struct {
Subscriber *nsq.Consumer
}
func NewSubscriberManager ¶
func NewSubscriberManager(subscriber *nsq.Consumer) *SubscriberManager
func (*SubscriberManager) SubscribeFromNsq ¶
func (s *SubscriberManager) SubscribeFromNsq(f nsq.HandlerFunc) error
Click to show internal directories.
Click to hide internal directories.