Documentation
¶
Overview ¶
NSQ队列消息 此模块依赖xlog模块,所以使用时请注意使用 `xlog.Regedit()` 来注册日志配置
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Set string // 写入队列的nsqd服务域名端口,一般为127.0.0.1:4150 SetTopic string // 写入队列的topic名称 Get string // 读取队列的nsqlookupd域名端口,一般为127.0.0.1:4161,空表示不监听此服务 GetTopic string // 读取队列的get_topic服务 GetChannel string // 读取队列的get_channel服务 GetMaxInFlight int // 最大并发消费数配置,建议配置为nsqd服务的倍数,默认为1 MaxAttempts uint16 // 错误最大重试次数 }
Click to show internal directories.
Click to hide internal directories.