会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
张伯雨
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
37
下一页
2017年8月31日
channel.go
摘要: package nsqdimport ( "bytes" "container/heap" "errors" "math" "strings" "sync" "sync/atomic" "time" "github.com/nsqio/nsq/internal/pqueue" "github.com/nsqio/nsq/internal/...
阅读全文
posted @ 2017-08-31 11:04 张伯雨
阅读(240)
评论(0)
推荐(0)
编辑
backend_queue.go
摘要: package nsqd// BackendQueue represents the behavior for the secondary message// storage systemtype BackendQueue interface { Put([]byte) error ReadChan() chan []byte // this is expected to be an ...
阅读全文
posted @ 2017-08-31 11:03 张伯雨
阅读(190)
评论(0)
推荐(0)
编辑
http.go
摘要: package nsqlookupdimport ( "fmt" "net/http" "net/http/pprof" "sync/atomic" "github.com/julienschmidt/httprouter" "github.com/nsqio/nsq/internal/http_api" "github.com/nsqio/nsq/int...
阅读全文
posted @ 2017-08-31 10:52 张伯雨
阅读(331)
评论(0)
推荐(0)
编辑
nsqlookup_protocol_v1.go
摘要: package nsqlookupdimport ( "bufio" "encoding/binary" "encoding/json" "fmt" "io" "log" "net" "os" "strings" "sync/atomic" "time" "github.com/nsqio/nsq/internal/proto...
阅读全文
posted @ 2017-08-31 10:51 张伯雨
阅读(270)
评论(0)
推荐(0)
编辑
tcp.go
摘要: package nsqlookupdimport ( "io" "net" "github.com/nsqio/nsq/internal/protocol")type tcpServer struct { ctx *Context}func (p *tcpServer) Handle(clientConn net.Conn) { p.ctx.nsqlookupd.lo...
阅读全文
posted @ 2017-08-31 10:50 张伯雨
阅读(257)
评论(0)
推荐(0)
编辑
nsqlookupd.go
摘要: package nsqlookupdimport ( "fmt" "net" "os" "sync" "github.com/nsqio/nsq/internal/http_api" "github.com/nsqio/nsq/internal/protocol" "github.com/nsqio/nsq/internal/util" "githu...
阅读全文
posted @ 2017-08-31 10:50 张伯雨
阅读(248)
评论(0)
推荐(0)
编辑
registration_db.go
摘要: package nsqlookupdimport ( "fmt" "sync" "sync/atomic" "time")//db(注册中心--内存数据库map)结构体type RegistrationDB struct { sync.RWMutex //读写锁 registrationMap map[Registration]Producers //}//代...
阅读全文
posted @ 2017-08-31 10:49 张伯雨
阅读(346)
评论(0)
推荐(0)
编辑
logger.go
摘要: package nsqlookupd//日志结构type Logger interface { Output(maxdepth int, s string) error}
阅读全文
posted @ 2017-08-31 10:48 张伯雨
阅读(161)
评论(0)
推荐(0)
编辑
options.go
摘要: package nsqlookupdimport ( "log" "os" "time")//记录nsqd配置信息type Options struct { Verbose bool `flag:"verbose"` //开启日志信息 TCPAddress string `flag:"tcp-address"` //tcp地址 HTTPAddres...
阅读全文
posted @ 2017-08-31 10:48 张伯雨
阅读(210)
评论(0)
推荐(0)
编辑
context.go
摘要: package nsqlookupd//上下文接口type Context struct { nsqlookupd *NSQLookupd //本次协成上下文所包含的信息结构体}
阅读全文
posted @ 2017-08-31 10:47 张伯雨
阅读(178)
评论(0)
推荐(0)
编辑
上一页
1
···
11
12
13
14
15
16
17
18
19
···
37
下一页