nsq

package
v0.0.0-...-0a934e1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelNsq string = "garden-be"
)

Variables

This section is empty.

Functions

func NewConsumerClient

func NewConsumerClient() *consumer

func NewNsqClient

func NewNsqClient() *nsqClient

Types

type Consumer

type Consumer interface {
	SubscribeMsg(topic string, cmd func([]byte) error) error
}

type NsqClient

type NsqClient interface {
	NsqProducer() (*nsq.Producer, error)
	NsqConsumer(topic string, ch string) (*nsq.Consumer, error)
	GetNsqProducerLink() string
	GetNsqConsumerLink() string
}

type Publish

type Publish interface {
	PublishMsg(topic string, msg interface{}) (err error)
}

func NewPublishClient

func NewPublishClient() Publish

Jump to

Keyboard shortcuts

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