Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Name pub-sub plug-in name
Name = "PubsubNsq"
)
Variables ¶
This section is empty.
Functions ¶
func BuildWithOption ¶
Types ¶
type Option ¶
type Option func(*Parm)
Option config wraps
func WithHandlerConcurrent ¶
WithHandlerConcurrent 消费者接收句柄的并发数量(默认1
func WithNsqdAddr ¶
WithNsqdAddr nsqd addr
type Parm ¶
type Parm struct { LookupdAddress []string // lookupd 地址 NsqdAddress []string NsqdHttpAddress []string ConcurrentHandler int32 // consumer 接收句柄的并发数(默认1 HA bool // 是否开启高可用,向每个nsqd发送消息 ChannelLength int32 // 管道长度,如果设置为0则全部消息都落地到磁盘再进行消费 NsqLogLv nsq.LogLevel // contains filtered or unexported fields }
Parm nsq config
Click to show internal directories.
Click to hide internal directories.