nsqs

package module
v0.0.0-...-7b0e155 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 4 Imported by: 0

README

NSQ应用

基于go-nsqSDK实现消息队列消息的生产与消费。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConcurrentHandlers

func AddConcurrentHandlers(topic, channel string, handler nsq.Handler, concurrency int) error

func AddConsumer

func AddConsumer(topic, channel string, handler nsq.Handler) error

func AddHandler

func AddHandler(topic, channel string, handler nsq.Handler) error

func AddProducer

func AddProducer(addr string, config *nsq.Config) (*nsq.Producer, error)

func GetConsumer

func GetConsumer(topic, channel string) (consumers []*nsq.Consumer)

func NewConfig

func NewConfig() *nsq.Config

func NewConsumerMgr

func NewConsumerMgr(config *nsq.Config, lookupdAddrs []string)

func Stop

func Stop()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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