自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除