会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
张伯雨
学习使人快乐
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
37
下一页
2017年8月31日
logger.go
摘要: package nsqdtype Logger interface { Output(maxdepth int, s string) error}
阅读全文
posted @ 2017-08-31 11:13 张伯雨
阅读(122)
评论(0)
推荐(0)
http.go
摘要: package nsqdimport ( "bufio" "bytes" "encoding/json" "fmt" "io" "io/ioutil" "net" "net/http" "net/http/pprof" "net/url" "os" "reflect" "runtime" "strconv" ...
阅读全文
posted @ 2017-08-31 11:13 张伯雨
阅读(295)
评论(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 张伯雨
阅读(314)
评论(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 张伯雨
阅读(233)
评论(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 张伯雨
阅读(160)
评论(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 张伯雨
阅读(349)
评论(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 张伯雨
阅读(123)
评论(0)
推荐(0)
context.go
摘要: package nsqdtype context struct { nsqd *NSQD}
阅读全文
posted @ 2017-08-31 11:08 张伯雨
阅读(154)
评论(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 张伯雨
阅读(353)
评论(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 张伯雨
阅读(362)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
37
下一页