Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JobQueue chan Job
JobQueue 定义全部的工作队列
Functions ¶
Types ¶
type SendConsumer ¶
type SendConsumer struct { }
SendConsumer 发消息消费者
func (*SendConsumer) HandleMessage ¶
func (sc *SendConsumer) HandleMessage(msg *nsq.Message) error
HandleMessage 处理消息
type Sender ¶
type Sender struct { WorkerPool chan chan Job // 注册工作通道 // contains filtered or unexported fields }
Sender 定义任务发送者
Click to show internal directories.
Click to hide internal directories.