Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublisherManager ¶
type PublisherManager struct {
Publisher *nsq.Producer
}
func NewPublisherManager ¶
func NewPublisherManager(publisher *nsq.Producer) *PublisherManager
func (PublisherManager) PushMessageToNsq ¶
func (p PublisherManager) PushMessageToNsq(ctx context.Context, request *push.PushMessageRequest) error
type SubscriberManager ¶
type SubscriberManager struct {
Subscriber *nsq.Consumer
}
func NewSubscriberManager ¶
func NewSubscriberManager(subscriber *nsq.Consumer) *SubscriberManager
func (SubscriberManager) SubscribeMessageFromNsq ¶
func (s SubscriberManager) SubscribeMessageFromNsq(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.