mynsq

package
v0.0.0-...-faf29f7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConsumeSize

func GetConsumeSize() int

func ProduceMsg

func ProduceMsg(topic string, message []byte) bool

发消息

func StartConsumeMsg

func StartConsumeMsg(index int, topic, channel, nsqd string, handler nsq.Handler) bool

单个nsqd处理消息 index 表示consumer 索引(用于开关使用)

func StopAllConsumeMsg

func StopAllConsumeMsg()

停止所有topic的全部消费

func StopConsumeMsgByIndex

func StopConsumeMsgByIndex(index int)

停止消费

func StopConsumeMsgByTopic

func StopConsumeMsgByTopic(topic string)

停止某个topic下全部消费

Types

This section is empty.

Jump to

Keyboard shortcuts

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