Documentation ¶
Index ¶
Constants ¶
View Source
const (
USER_AGENT = "go agent v0.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
type TopicDiscoverer ¶
type TopicDiscoverer struct {
// contains filtered or unexported fields
}
func NewTopicDiscoverer ¶
func NewTopicDiscoverer(topics []string, channel string, maxInFlight int, lookupdHTTPAddrs []string, handle func(string, interface{})) *TopicDiscoverer
NewTopicDiscoverer 生成多个主题发现的消费者 topics 订阅主题列表 channel channel名称 maxInFlight NSQD在有maxInFlight*25条消息时向下推送 lookupdHTTPAddrs NSQLOOKUPs的http地址 handle 消息处理句柄 PS:对channel不同的topic应该生成不同的消费者
Click to show internal directories.
Click to hide internal directories.