nsqtool

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeConsumer

func InitializeConsumer(nsqconfig *NsqConfig, topic, channel string, back func(m *nsq.Message) error)

Types

type Nsq added in v0.0.21

type Nsq struct {
	Producer *nsq.Producer
}

func InitializePublisher

func InitializePublisher(nsqconfig *NsqConfig) *Nsq

func (*Nsq) Send added in v0.0.21

func (n *Nsq) Send(topic string, msg []byte) error

func (*Nsq) SendSync added in v0.0.27

func (n *Nsq) SendSync(topic string, msg []byte) error

type NsqConfig added in v0.0.4

type NsqConfig struct {
	Lookups []string `yaml:"nsqlookups"`
	NSQDs   []string `yaml:"nsqds"`
	NSQD    string   `yaml:"nsqd"`
}

NsqConfig - Represents a Configuration

Jump to

Keyboard shortcuts

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