mq

package
v0.0.0-...-4cc9216 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL