Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/siddontang/go
/ functions
Functions
607 in github.com/siddontang/go
⨍
Functions
607
◇
Types & classes
121
↓ 3 callers
Function
Infof
(format string, v ...interface{})
log/log.go:329
↓ 3 callers
Method
InsertAfter
(v interface{}, mark *Element)
list2/list.go:200
↓ 3 callers
Method
MPop
(n int)
ring/ring.go:49
↓ 3 callers
Method
Make
(size int)
arena/arena.go:18
↓ 3 callers
Method
MakeRpc
(rpcName string, fptr interface{})
rpc/client.go:54
↓ 3 callers
Method
Ping
(message []byte)
websocket/conn.go:113
↓ 3 callers
Method
Pong
(message []byte)
websocket/conn.go:117
↓ 3 callers
Method
Release
()
sync2/semaphore.go:23
↓ 3 callers
Method
SetBool
(key string, v bool)
config/config.go:157
↓ 3 callers
Method
Write
(p []byte)
log/filehandler.go:81
↓ 3 callers
Method
addBinary
-------------------------------------------------------------------------- Marshaling of base types.
bson/encode.go:426
↓ 3 callers
Method
addCStr
(v string)
bson/encode.go:444
↓ 3 callers
Method
checkCapacity
()
cache/lru_cache.go:244
↓ 3 callers
Method
delTimer
(t *timer)
time2/wheel.go:179
↓ 3 callers
Function
emitLiteral
emitLiteral writes a literal chunk and returns the number of bytes written.
snappy/encode.go:15
↓ 3 callers
Function
handleErr
(err *error)
bson/bson.go:391
↓ 3 callers
Method
moveToFront
(element *list.Element)
cache/lru_cache.go:231
↓ 3 callers
Function
newTestClient
()
rpc/rpc_test.go:26
↓ 3 callers
Function
newTestServer
()
rpc/rpc_test.go:15
↓ 3 callers
Function
testConfig
(cfg *Config, t *testing.T)
config/config_test.go:9
↓ 3 callers
Function
testCrossPair
(c *C, dump interface{}, load interface{})
bson/bson_test.go:1262
↓ 3 callers
Function
testUnmarshal
(c *C, data string, obj interface{})
bson/bson_test.go:78
↓ 2 callers
Method
AcquireTimeout
(timeout time.Duration)
sync2/semaphore.go:41
↓ 2 callers
Method
Call
(data []byte)
rpc/conn.go:29
↓ 2 callers
Method
CompareAndSwap
(oldval, newval string)
sync2/atomic.go:124
↓ 2 callers
Function
Decode
Decode returns the decoded form of src. The returned slice may be a sub- slice of dst if dst was large enough to hold the entire decoded block. Otherw
snappy/decode.go:38
↓ 2 callers
Method
Delete
Delete removes an entry from the cache, and returns if the entry existed.
cache/lru_cache.go:107
↓ 2 callers
Method
Empty
()
ring/ring.go:99
↓ 2 callers
Method
GetBSON
()
bson/bson.go:62
↓ 2 callers
Method
GetInt64
* int may be pure number or below format: # 1k => 1000 bytes # 1kb => 1024 bytes # 1m => 1000000 bytes # 1mb => 1024*1
config/config.go:62
↓ 2 callers
Method
GetString
(key string)
config/config.go:132
↓ 2 callers
Method
Gets
(n int)
ring/ring.go:103
↓ 2 callers
Method
Info
log with info level
log/log.go:235
↓ 2 callers
Function
MaxEncodedLen
MaxEncodedLen returns the maximum length of a snappy block, given its uncompressed length.
snappy/encode.go:152
↓ 2 callers
Function
NewClient
(netConn net.Conn, u *url.URL, requestHeader http.Header)
websocket/client.go:16
↓ 2 callers
Function
NewConfig
()
config/config.go:25
↓ 2 callers
Function
NewConn
(conn net.Conn, isServer bool)
websocket/conn.go:40
↓ 2 callers
Function
NewDefault
new a default logger with specified handler and flag: Ltime|Lfile|Llevel
log/log.go:76
↓ 2 callers
Function
NewRing
(maxSize int)
ring/ring.go:20
↓ 2 callers
Function
NewSectionWriter
(w io.WriterAt, off int64, n int64)
ioutil2/sectionwriter.go:10
↓ 2 callers
Function
NewSemaphore
(initialCount int)
sync2/semaphore.go:9
↓ 2 callers
Function
NewSize
(size int)
list2/list.go:47
↓ 2 callers
Function
NewStreamHandler
(w io.Writer)
log/handler.go:18
↓ 2 callers
Function
NewWheel
tick is the time for a jiffies
time2/wheel.go:52
↓ 2 callers
Method
Read
(r io.Reader)
config/read.go:32
↓ 2 callers
Function
ReadConfig
(data []byte)
config/read.go:22
↓ 2 callers
Method
ReadMessage
()
rpc/conn.go:59
↓ 2 callers
Function
RegisterType
(value interface{})
rpc/codec.go:17
↓ 2 callers
Method
Reset
()
bytes2/chunked_writer.go:51
↓ 2 callers
Method
Set
(v bool)
sync2/atomic.go:136
↓ 2 callers
Method
SetBSON
(raw Raw)
bson/bson.go:93
↓ 2 callers
Method
SetIfAbsent
SetIfAbsent will set the value in the cache if not present. If the value exists in the cache, we don't set it.
cache/lru_cache.go:95
↓ 2 callers
Method
Start
()
rpc/server.go:33
↓ 2 callers
Method
StatsJSON
StatsJSON returns stats as a JSON object in a string.
cache/lru_cache.go:154
↓ 2 callers
Method
TickFunc
(d time.Duration, f func())
time2/wheel.go:260
↓ 2 callers
Function
Upgrade
(w http.ResponseWriter, r *http.Request, responseHeader http.Header)
websocket/server.go:22
↓ 2 callers
Method
Write
(message []byte, binary bool)
websocket/conn.go:91
↓ 2 callers
Method
WriteMessage
(data []byte)
rpc/conn.go:41
↓ 2 callers
Method
addFloat64
(v float64)
bson/encode.go:473
↓ 2 callers
Method
addNew
(key string, value Value)
cache/lru_cache.go:236
↓ 2 callers
Method
addTimerInternal
(t *timer)
time2/wheel.go:79
↓ 2 callers
Function
benchDecode
(b *testing.B, src []byte)
snappy/snappy_test.go:82
↓ 2 callers
Function
benchEncode
(b *testing.B, src []byte)
snappy/snappy_test.go:95
↓ 2 callers
Function
calcAcceptKey
(key string)
websocket/util.go:13
↓ 2 callers
Function
checkListLen
(t *testing.T, l *List, len int)
list2/list_test.go:8
↓ 2 callers
Function
clearMap
(m reflect.Value)
bson/decode.go:117
↓ 2 callers
Function
decodeData
(data []byte)
rpc/codec.go:48
↓ 2 callers
Function
decodedLen
decodedLen returns the length of the decoded block and the number of bytes that the length header occupied.
snappy/decode.go:23
↓ 2 callers
Method
dropElem
(kind byte)
bson/decode.go:425
↓ 2 callers
Function
encodeData
(name string, args []interface{})
rpc/codec.go:32
↓ 2 callers
Function
getSetter
(outt reflect.Type, out reflect.Value)
bson/decode.go:86
↓ 2 callers
Function
getStructInfo
(st reflect.Type)
bson/bson.go:560
↓ 2 callers
Method
maskingData
(data []byte, maskingKey []byte)
websocket/conn.go:312
↓ 2 callers
Function
newDecoder
(in []byte)
bson/decode.go:48
↓ 2 callers
Function
parseURL
(s string)
bson/bson_test.go:1046
↓ 2 callers
Method
readDocElems
(typ reflect.Type)
bson/decode.go:363
↓ 2 callers
Method
readDocWith
(f func(kind byte, name string))
bson/decode.go:397
↓ 2 callers
Function
readFile
(b *testing.B, filename string)
snappy/snappy_test.go:105
↓ 2 callers
Method
readRawDocElems
(typ reflect.Type)
bson/decode.go:380
↓ 2 callers
Method
readSliceDoc
(t reflect.Type)
bson/decode.go:321
↓ 2 callers
Method
reserveInt32
()
bson/encode.go:449
↓ 2 callers
Method
resetTimer
(t *timer, when time.Duration, period time.Duration)
time2/wheel.go:191
↓ 2 callers
Method
setInt32
(pos int, v int32)
bson/encode.go:455
↓ 2 callers
Function
spawn
(prog, filename string)
filelock/file_lock_test.go:17
↓ 1 callers
Method
Add
(n int32)
sync2/atomic.go:15
↓ 1 callers
Method
After
(timeout time.Duration)
timingwheel/timingwheel.go:49
↓ 1 callers
Method
AfterFunc
(d time.Duration, f func())
time2/wheel.go:271
↓ 1 callers
Function
BytesToInt16
(b []byte)
num/bytes.go:39
↓ 1 callers
Function
BytesToInt32
(b []byte)
num/bytes.go:49
↓ 1 callers
Function
BytesToInt64
(b []byte)
num/bytes.go:59
↓ 1 callers
Function
BytesToUint16
all are bigendian format
num/bytes.go:9
↓ 1 callers
Function
BytesToUint32
(b []byte)
num/bytes.go:19
↓ 1 callers
Function
BytesToUint64
(b []byte)
num/bytes.go:29
↓ 1 callers
Method
Capacity
Capacity returns the cache maximum capacity.
cache/lru_cache.go:177
↓ 1 callers
Method
Clear
Clear will clear the entire cache.
cache/lru_cache.go:123
↓ 1 callers
Method
Close
()
log/filehandler.go:88
↓ 1 callers
Function
ExecTimeout
exec another process if wait d Duration, it will kill the process d is <= 0, wait forever
exec2/exec.go:11
↓ 1 callers
Function
Fatalf
(format string, v ...interface{})
log/log.go:341
↓ 1 callers
Function
FormatInt16
(v int16)
num/str.go:87
↓ 1 callers
Function
FormatInt32
(v int32)
num/str.go:91
← previous
next →
101–200 of 607, ranked by callers