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






张伯雨

学习使人快乐
 
 

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

2017年8月31日

stats.go
摘要: package nsqdimport ( "sort" "sync/atomic" "github.com/nsqio/nsq/internal/quantile")type TopicStats struct { TopicName string `json:"topic_name"` Channels []ChannelStats `... 阅读全文
posted @ 2017-08-31 11:19 张伯雨 阅读(263) 评论(0) 推荐(0)
 
rename.go
摘要: package nsqdimport ( "syscall" "unsafe")var ( modkernel32 = syscall.NewLazyDLL("kernel32.dll") procMoveFileExW = modkernel32.NewProc("MoveFileExW"))const ( MOVEFILE_REPLACE_EXISTING... 阅读全文
posted @ 2017-08-31 11:18 张伯雨 阅读(211) 评论(0) 推荐(0)
 
rename_windows.go
摘要: package nsqdimport ( "syscall" "unsafe")var ( modkernel32 = syscall.NewLazyDLL("kernel32.dll") procMoveFileExW = modkernel32.NewProc("MoveFileExW"))const ( MOVEFILE_REPLACE_EXISTING... 阅读全文
posted @ 2017-08-31 11:18 张伯雨 阅读(442) 评论(0) 推荐(0)
 
protocol_v2.go
摘要: package nsqdimport ( "bytes" "encoding/binary" "encoding/json" "errors" "fmt" "io" "math" "math/rand" "net" "sync/atomic" "time" "unsafe" "github.com/nsqio/nsq/i... 阅读全文
posted @ 2017-08-31 11:17 张伯雨 阅读(383) 评论(0) 推荐(0)
 
nsqd.go
摘要: package nsqdimport ( "crypto/tls" "crypto/x509" "encoding/json" "errors" "fmt" "io/ioutil" "math/rand" "net" "os" "path" "runtime" "strings" "sync" "sync/atom... 阅读全文
posted @ 2017-08-31 11:16 张伯雨 阅读(583) 评论(0) 推荐(0)
 
options.go
摘要: package nsqdimport ( "crypto/md5" "crypto/tls" "hash/crc32" "io" "log" "os" "time")type Options struct { // basic options ID int64 `flag:"worke... 阅读全文
posted @ 2017-08-31 11:16 张伯雨 阅读(465) 评论(0) 推荐(0)
 
lookup_peer.go
摘要: package nsqdimport ( "encoding/binary" "fmt" "io" "net" "time" "github.com/nsqio/go-nsq")// lookupPeer is a low-level type for connecting/reading/writing to nsqlookupd//// A lookupPe... 阅读全文
posted @ 2017-08-31 11:15 张伯雨 阅读(223) 评论(0) 推荐(0)
 
message.go
摘要: package nsqdimport ( "bytes" "encoding/binary" "fmt" "io" "time")const ( MsgIDLength = 16 minValidMsgLength = MsgIDLength + 8 + 2 // Timestamp + Attempts)type MessageID [Msg... 阅读全文
posted @ 2017-08-31 11:15 张伯雨 阅读(370) 评论(0) 推荐(0)
 
lookup.go
摘要: package nsqdimport ( "bytes" "encoding/json" "net" "os" "strconv" "time" "github.com/nsqio/go-nsq" "github.com/nsqio/nsq/internal/version")func connectCallback(n *NSQD, hostnam... 阅读全文
posted @ 2017-08-31 11:14 张伯雨 阅读(441) 评论(0) 推荐(0)
 
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 张伯雨 阅读(374) 评论(0) 推荐(0)
 
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 37 下一页