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






张伯雨

学习使人快乐
 
 

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 张伯雨 阅读(450) 评论(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 张伯雨 阅读(192) 评论(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 张伯雨 阅读(340) 评论(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 张伯雨 阅读(275) 评论(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 张伯雨 阅读(261) 评论(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 张伯雨 阅读(251) 评论(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 张伯雨 阅读(352) 评论(0) 推荐(0)
 
logger.go
摘要: package nsqlookupd//日志结构type Logger interface { Output(maxdepth int, s string) error} 阅读全文
posted @ 2017-08-31 10:48 张伯雨 阅读(167) 评论(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 张伯雨 阅读(214) 评论(0) 推荐(0)
 
context.go
摘要: package nsqlookupd//上下文接口type Context struct { nsqlookupd *NSQLookupd //本次协成上下文所包含的信息结构体} 阅读全文
posted @ 2017-08-31 10:47 张伯雨 阅读(183) 评论(0) 推荐(0)
 
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 37 下一页