• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






张伯雨

学习使人快乐
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 37 下一页

2017年8月31日

in_flight_pqueue.go
摘要: package nsqdtype inFlightPqueue []*Messagefunc newInFlightPqueue(capacity int) inFlightPqueue { return make(inFlightPqueue, 0, capacity)}func (pq inFlightPqueue) Swap(i, j int) { pq[i], pq[j] = ... 阅读全文
posted @ 2017-08-31 11:13 张伯雨 阅读(372) 评论(0) 推荐(0)
 
logger.go
摘要: package nsqdtype Logger interface { Output(maxdepth int, s string) error} 阅读全文
posted @ 2017-08-31 11:13 张伯雨 阅读(119) 评论(0) 推荐(0)
 
guid.go
摘要: package nsqd// the core algorithm here was borrowed from:// Blake Mizerany's `noeqd` https://github.com/bmizerany/noeqd// and indirectly:// Twitter's `snowflake` https://github.com/twitter/snowflake//... 阅读全文
posted @ 2017-08-31 11:12 张伯雨 阅读(311) 评论(0) 推荐(0)
 
dummy_backend_queue.go
摘要: package nsqdtype dummyBackendQueue struct { readChan chan []byte}func newDummyBackendQueue() BackendQueue { return &dummyBackendQueue{readChan: make(chan []byte)}}func (d *dummyBackendQueue) Put... 阅读全文
posted @ 2017-08-31 11:11 张伯雨 阅读(230) 评论(0) 推荐(0)
 
dqname_widnows.go
摘要: package nsqd// On Windows, file names cannot contain colons.func getBackendName(topicName, channelName string) string { // backend names, for uniqueness, automatically include the topic... ; bac... 阅读全文
posted @ 2017-08-31 11:10 张伯雨 阅读(159) 评论(0) 推荐(0)
 
diskqueue.go
摘要: package nsqdimport ( "bufio" "bytes" "encoding/binary" "errors" "fmt" "io" "math/rand" "os" "path" "sync" "sync/atomic" "time")// diskQueue implements the BackendQu... 阅读全文
posted @ 2017-08-31 11:09 张伯雨 阅读(348) 评论(0) 推荐(0)
 
dqname.go
摘要: package nsqdfunc getBackendName(topicName, channelName string) string { // backend names, for uniqueness, automatically include the topic... : backendName := topicName + ":" + channelName ret... 阅读全文
posted @ 2017-08-31 11:09 张伯雨 阅读(121) 评论(0) 推荐(0)
 
context.go
摘要: package nsqdtype context struct { nsqd *NSQD} 阅读全文
posted @ 2017-08-31 11:08 张伯雨 阅读(153) 评论(0) 推荐(0)
 
client_v2.go
摘要: package nsqdimport ( "bufio" "compress/flate" "crypto/tls" "fmt" "net" "sync" "sync/atomic" "time" "github.com/mreiferson/go-snappystream" "github.com/nsqio/nsq/internal/... 阅读全文
posted @ 2017-08-31 11:05 张伯雨 阅读(350) 评论(0) 推荐(0)
 
buffer_pool.go
摘要: package nsqdimport ( "bytes" "sync")var bp sync.Poolfunc init() { bp.New = func() interface{} { return &bytes.Buffer{} }}func bufferPoolGet() *bytes.Buffer { return bp.Get().(*by... 阅读全文
posted @ 2017-08-31 11:04 张伯雨 阅读(360) 评论(0) 推荐(0)
 
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 37 下一页