- 博客(4)
- 收藏
- 关注
原创 文章标题
// Channel represents the concrete type for a NSQ channel //(and also implements the Queue interface) // // There can be multiple channels per topic, each with //there own unique set of subscribers
2017-08-15 08:55:44 194
原创 buffer_pool.go
var bp sync.Poolfunc init() { bp.New = func() interface{} { return &bytes.Buffer{} } }给bp的New函数赋值bytes.buffer是一个缓冲byte类型的缓冲器存放着都是byte Buffer 是 bytes 包中的一个 type Buffer struct{…}A buffe
2017-08-15 08:44:38 400
原创 nsq源码分析backend_queue.go
backend_queue.go// BackendQueue represents the behavior for the secondary message // storage system 5 type BackendQueue interface { 6 Put([]byte) error 7 ReadChan() chan []byte // this is expec
2017-08-14 22:41:34 344
原创 欢迎使用CSDN-markdown编辑器
func (t *TopicDiscoverer) startTopicRouter(logger *ConsumerFileLogger) { 391 t.wg.Add(1) 392 defer t.wg.Done() 393 go logger.F.router(logger.C) 394 <-logger.F.ExitChan 395 } exit
2017-08-14 22:26:44 180
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人