会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
张伯雨
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
37
下一页
2017年9月1日
plugin.go 源码阅读
摘要: package pingoimport ( "bufio" "errors" "fmt" "io" "log" "net" "net/rpc" "os" "os/exec" "strings" "time")var ( errInvalidMessage = ErrInvalidMessage(errors.New(...
阅读全文
posted @ 2017-09-01 09:03 张伯雨
阅读(258)
评论(0)
推荐(0)
编辑
2017年8月31日
server.go 源码阅读
摘要: package pingoimport ( "bufio" "bytes" "flag" "fmt" "io" "math/rand" "net" "net/rpc" "os" "path" "path/filepath" "reflect" "strings" "time")// Register a new o..
阅读全文
posted @ 2017-08-31 11:39 张伯雨
阅读(387)
评论(0)
推荐(0)
编辑
pingo--util.go 源码阅读
摘要: package pingoimport ( "fmt" "math/rand" "strings")type meta string //定义 自定义数据类型//输出包含自身在内的参数字符串func (h meta) output(key, val string) { fmt.Printf("%s: %s: %s\n", string(h), key, val)}fun...
阅读全文
posted @ 2017-08-31 11:38 张伯雨
阅读(192)
评论(0)
推荐(0)
编辑
error.go源码笔记
摘要: package pingoimport ( "errors" "strings")const ( errorCodeConnFailed = "err-connection-failed" errorCodeHttpServe = "err-http-serve")// Error reported when connection to the external plug...
阅读全文
posted @ 2017-08-31 11:38 张伯雨
阅读(273)
评论(0)
推荐(0)
编辑
req_params.go
摘要: package http_apiimport ( "fmt" "log" "net" "net/http" "strings" "github.com/nsqio/nsq/internal/app")type logWriter struct { app.Logger}func (l logWriter) Write(p []byte) (int, err...
阅读全文
posted @ 2017-08-31 11:37 张伯雨
阅读(256)
评论(0)
推荐(0)
编辑
top_channel_args.go
摘要: package http_apiimport ( "fmt" "log" "net" "net/http" "strings" "github.com/nsqio/nsq/internal/app")type logWriter struct { app.Logger}func (l logWriter) Write(p []byte) (int, err...
阅读全文
posted @ 2017-08-31 11:37 张伯雨
阅读(142)
评论(0)
推荐(0)
编辑
authorizations.go
摘要: package authimport ( "errors" "fmt" "log" "net/url" "regexp" "time" "github.com/nsqio/nsq/internal/http_api")type Authorization struct { Topic string `json:"topic"` ...
阅读全文
posted @ 2017-08-31 11:37 张伯雨
阅读(309)
评论(0)
推荐(0)
编辑
http_server.go
摘要: package http_apiimport ( "fmt" "log" "net" "net/http" "strings" "github.com/nsqio/nsq/internal/app")type logWriter struct { app.Logger}func (l logWriter) Write(p []byte) (int, err...
阅读全文
posted @ 2017-08-31 11:34 张伯雨
阅读(203)
评论(0)
推荐(0)
编辑
compress.go
摘要: // Copyright 2013 The Gorilla Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.// copied from https://github.com/goril...
阅读全文
posted @ 2017-08-31 11:33 张伯雨
阅读(203)
评论(0)
推荐(0)
编辑
api_response.go
摘要: package http_apiimport ( "encoding/json" "fmt" "io" "net/http" "time" "github.com/julienschmidt/httprouter" "github.com/nsqio/nsq/internal/app")type Decorator func(APIHandler) API...
阅读全文
posted @ 2017-08-31 11:28 张伯雨
阅读(327)
评论(0)
推荐(0)
编辑
上一页
1
···
7
8
9
10
11
12
13
14
15
···
37
下一页