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






张伯雨

学习使人快乐
 
 

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

2017年8月31日

api_request.go
摘要: package http_apiimport ( "crypto/tls" "encoding/json" "fmt" "io/ioutil" "net" "net/http" "net/url" "strconv" "strings" "time")type deadlinedConn struct { Timeout time.... 阅读全文
posted @ 2017-08-31 11:27 张伯雨 阅读(299) 评论(0) 推荐(0)
 
logger.go
摘要: package app//日志接口type Logger interface { Output(maxdepth int, s string) error} 阅读全文
posted @ 2017-08-31 11:26 张伯雨 阅读(140) 评论(0) 推荐(0)
 
string_array.go
摘要: package appimport ( "strings")type StringArray []stringfunc (a *StringArray) Set(s string) error { *a = append(*a, s) return nil}func (a *StringArray) String() string { return strings.Join... 阅读全文
posted @ 2017-08-31 11:26 张伯雨 阅读(197) 评论(0) 推荐(0)
 
float_array.go
摘要: package appimport ( "fmt" "log" "sort" "strconv" "strings")//这个文件相关的代码不需要解释了吧!!!type FloatArray []float64func (a *FloatArray) Set(param string) error { for _, s := range strings.Spli... 阅读全文
posted @ 2017-08-31 11:25 张伯雨 阅读(197) 评论(0) 推荐(0)
 
types.go
摘要: package clusterinfoimport ( "encoding/json" "fmt" "sort" "strings" "time" "github.com/blang/semver" "github.com/nsqio/nsq/internal/quantile")type ProducerTopic struct { Topic ... 阅读全文
posted @ 2017-08-31 11:24 张伯雨 阅读(285) 评论(0) 推荐(0)
 
data.go
摘要: package clusterinfoimport ( "fmt" "net" "net/url" "sort" "strconv" "strings" "sync" "github.com/blang/semver" "github.com/nsqio/nsq/internal/http_api" "github.com/nsqio/n... 阅读全文
posted @ 2017-08-31 11:23 张伯雨 阅读(254) 评论(0) 推荐(0)
 
dirlock_windows.go
摘要: package dirlocktype DirLock struct { dir string}func New(dir string) *DirLock { return &DirLock{ dir: dir, }}func (l *DirLock) Lock() error { return nil}func (l *DirLock) Unlock() e... 阅读全文
posted @ 2017-08-31 11:22 张伯雨 阅读(215) 评论(0) 推荐(0)
 
tcp.go
摘要: package nsqdimport ( "io" "net" "github.com/nsqio/nsq/internal/protocol")type tcpServer struct { ctx *context}func (p *tcpServer) Handle(clientConn net.Conn) { p.ctx.nsqd.logf("TCP: new... 阅读全文
posted @ 2017-08-31 11:21 张伯雨 阅读(198) 评论(0) 推荐(0)
 
dirlock.go
摘要: // +build !windowspackage dirlockimport ( "fmt" "os" "syscall")type DirLock struct { dir string f *os.File}func New(dir string) *DirLock { return &DirLock{ dir: dir, }}fu... 阅读全文
posted @ 2017-08-31 11:21 张伯雨 阅读(148) 评论(0) 推荐(0)
 
statsd.go
摘要: package nsqdimport ( "fmt" "math" "runtime" "sort" "time" "github.com/nsqio/nsq/internal/statsd")type Uint64Slice []uint64func (s Uint64Slice) Len() int { return len(s)}func (s Ui... 阅读全文
posted @ 2017-08-31 11:20 张伯雨 阅读(441) 评论(0) 推荐(0)
 
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 37 下一页