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: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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