MCPcopy Create free account

hub / github.com/siddontang/go / functions

Functions607 in github.com/siddontang/go

↓ 132 callersMethodFatal
log with fatal level
log/log.go:250
↓ 86 callersMethodErrorf
log with error level
log/log.go:275
↓ 36 callersFunctionbenchFile
(b *testing.B, n int, decode bool)
snappy/snappy_test.go:200
↓ 35 callersMethodError
()
tb/error.go:30
↓ 32 callersMethodUnmarshal
Unmarshal deserializes raw into the out value. If the out value type is not compatible with raw, a *bson.TypeError is returned. See the Unmarshal fu
bson/bson.go:503
↓ 31 callersFunctioncheckListPointers
(t *testing.T, l *List, es []*Element)
list2/list_test.go:16
↓ 30 callersMethodSet
(n int)
log/log.go:38
↓ 30 callersMethodaddElemName
-------------------------------------------------------------------------- Marshaling of elements in a document.
bson/encode.go:233
↓ 29 callersMethodClose
()
log/handler.go:10
↓ 28 callersFunctionwrapInDoc
Wrap up the document elements contained in data, prepending the int32 length of the data, and appending the '\x00' value closing the document.
bson/bson_test.go:53
↓ 24 callersMethodOutput
(callDepth int, level int, format string, v ...interface{})
log/log.go:156
↓ 23 callersMethodRemove
(e *Element)
list2/list.go:114
↓ 23 callersMethodWriteString
write utf-8 text message
websocket/conn.go:104
↓ 22 callersMethodPushBack
(v interface{})
list2/list.go:188
↓ 22 callersMethodString
String returns a hex string representation of the id. Example: ObjectIdHex("4d88e15b60f486e428412dc9").
bson/bson.go:251
↓ 21 callersMethodBytes
Bytes This function can get expensive for large buffers.
bytes2/chunked_writer.go:32
↓ 21 callersMethodLen
()
ring/ring.go:35
↓ 20 callersFunctioncorrupted
-------------------------------------------------------------------------- Some helper functions.
bson/decode.go:55
↓ 20 callersFunctiontestMax
(t *testing.T, v1 interface{}, v2 interface{}, v interface{})
num/num_test.go:71
↓ 20 callersFunctiontestMin
(t *testing.T, v1 interface{}, v2 interface{}, v interface{})
num/num_test.go:7
↓ 19 callersMethodSet
Set sets a value in the cache.
cache/lru_cache.go:82
↓ 18 callersMethodWrite
(p []byte)
log/handler.go:9
↓ 17 callersMethodaddBytes
(v ...byte)
bson/encode.go:477
↓ 14 callersMethodFront
()
list2/list.go:83
↓ 13 callersMethodFatalf
log with fatal level
log/log.go:280
↓ 13 callersMethodGet
Get returns a value from the cache, and marks the entry as most recently used.
cache/lru_cache.go:69
↓ 13 callersMethodLen
()
bytes2/chunked_writer.go:43
↓ 13 callersFunctionNew
()
list2/list.go:43
↓ 13 callersFunctionNewLRUCache
NewLRUCache creates a new empty cache with the given capacity.
cache/lru_cache.go:59
↓ 12 callersFunctioncheckList
(t *testing.T, l *List, es []interface{})
list2/list_test.go:162
↓ 11 callersMethodSleep
(d time.Duration)
time2/wheel.go:252
↓ 10 callersMethodCap
()
ring/ring.go:45
↓ 10 callersMethodStats
Stats returns a few stats on the cache.
cache/lru_cache.go:144
↓ 10 callersMethodreadElemTo
Attempt to decode an element from the document and put it into out. If the types are not compatible, the returned ok value will be false and out will
bson/decode.go:432
↓ 9 callersMethodGet
()
ring/ring.go:114
↓ 9 callersMethodNext
()
list2/list.go:16
↓ 8 callersMethodGet
()
sync2/atomic.go:117
↓ 8 callersMethodSize
Size returns how big this value is.
cache/lru_cache.go:42
↓ 8 callersMethodaddElem
(name string, v reflect.Value, minSize bool)
bson/encode.go:239
↓ 8 callersFunctionbenchWords
(b *testing.B, n int, decode bool)
snappy/snappy_test.go:126
↓ 7 callersMethodRead
()
websocket/conn.go:56
↓ 7 callersMethodSetLevel
set log level, any log level less than it will not log
log/log.go:120
↓ 7 callersMethodaddDoc
(v reflect.Value)
bson/encode.go:83
↓ 7 callersMethodreadByte
()
bson/decode.go:790
↓ 7 callersMethodreadInt32
()
bson/decode.go:770
↓ 6 callersMethodMoveToFront
(e *Element)
list2/list.go:208
↓ 6 callersMethodPushFront
(v interface{})
list2/list.go:184
↓ 6 callersMethodReadMessage
()
websocket/conn.go:52
↓ 6 callersMethodSetString
(key string, value string)
config/config.go:141
↓ 6 callersMethodaddInt32
(v int32)
bson/encode.go:462
↓ 6 callersMethodaddInt64
(v int64)
bson/encode.go:467
↓ 6 callersMethodaddTimer
(t *timer)
time2/wheel.go:173
↓ 6 callersMethodinsertValue
(v interface{}, index int)
list2/list.go:177
↓ 6 callersMethodreturnCallError
(fn reflect.Value, err error)
rpc/client.go:146
↓ 5 callersMethodBack
()
list2/list.go:91
↓ 5 callersMethodClose
()
rpc/conn.go:25
↓ 5 callersMethodLen
()
list2/list.go:79
↓ 5 callersFunctionNewChunkedWriter
(chunkSize int)
bytes2/chunked_writer.go:25
↓ 5 callersMethodNewTimer
(d time.Duration)
time2/wheel.go:281
↓ 5 callersMethodPushBackList
(other *List)
list2/list.go:238
↓ 5 callersMethodPushFrontList
(other *List)
list2/list.go:244
↓ 5 callersMethodWriteMessage
(messageType byte, message []byte)
websocket/conn.go:99
↓ 5 callersMethodaddStr
(v string)
bson/encode.go:439
↓ 5 callersMethodinsert
(e *Element, index int)
list2/list.go:165
↓ 5 callersMethodread
(buf []byte)
websocket/conn.go:295
↓ 5 callersMethodreadBytes
(length int32)
bson/decode.go:799
↓ 5 callersMethodremove
(e *Element)
list2/list.go:99
↓ 5 callersMethodsendFrame
(opcode byte, message []byte)
websocket/conn.go:233
↓ 4 callersMethodAcquire
()
sync2/semaphore.go:32
↓ 4 callersMethodAfter
(d time.Duration)
time2/wheel.go:248
↓ 4 callersMethodCounter
Counter returns the incrementing value part of the id. It's a runtime error to call this method with an invalid id.
bson/bson.go:315
↓ 4 callersMethodGet
()
sync2/atomic.go:144
↓ 4 callersMethodGet
()
log/log.go:42
↓ 4 callersMethodInsertBefore
(v interface{}, mark *Element)
list2/list.go:192
↓ 4 callersMethodMPush
(items []interface{})
ring/ring.go:74
↓ 4 callersMethodMachine
Machine returns the 3-byte machine id part of the id. It's a runtime error to call this method with an invalid id.
bson/bson.go:303
↓ 4 callersMethodMoveAfter
(e, mark *Element)
list2/list.go:231
↓ 4 callersMethodMoveBefore
(e, mark *Element)
list2/list.go:223
↓ 4 callersMethodMoveToBack
(e *Element)
list2/list.go:216
↓ 4 callersMethodNewTicker
(d time.Duration)
time2/wheel.go:293
↓ 4 callersMethodPid
Pid returns the process id part of the id. It's a runtime error to call this method with an invalid id.
bson/bson.go:309
↓ 4 callersMethodPrev
()
list2/list.go:24
↓ 4 callersMethodRegister
(name string, f interface{})
rpc/server.go:64
↓ 4 callersMethodReserve
(n int)
bytes2/chunked_writer.go:91
↓ 4 callersMethodSetInt
(key string, n int)
config/config.go:153
↓ 4 callersMethodTime
Time returns the timestamp part of the id. It's a runtime error to call this method with an invalid id.
bson/bson.go:295
↓ 4 callersMethodTruncate
(n int)
bytes2/chunked_writer.go:57
↓ 4 callersMethodWrite
(p []byte)
ioutil2/sectionwriter.go:21
↓ 4 callersMethodWriteString
(p string)
bytes2/chunked_writer.go:74
↓ 4 callersMethodbyteSlice
byteSlice returns byte slice of id from start to end. Calling this function with an invalid id will cause a runtime panic.
bson/bson.go:286
↓ 4 callersMethodcascade
(tv [][]*timer, index int)
time2/wheel.go:118
↓ 4 callersMethodgetIndex
(n int)
time2/wheel.go:129
↓ 4 callersFunctionmakeZeroDoc
(value interface{})
bson/bson_test.go:60
↓ 4 callersMethodnewTimer
(when time.Duration, period time.Duration, f func(time.Time, interface{}), arg interface{})
time2/wheel.go:200
↓ 4 callersMethodreadCStr
()
bson/decode.go:743
↓ 4 callersMethodreadDocTo
(out reflect.Value)
bson/decode.go:124
↓ 4 callersMethodreadInt64
()
bson/decode.go:778
↓ 4 callersMethodreadStr
()
bson/decode.go:734
↓ 4 callersFunctionroundtrip
(b, ebuf, dbuf []byte)
snappy/snappy_test.go:23
↓ 3 callersFunctionEncode
Encode returns the encoded form of src. The returned slice may be a sub- slice of dst if dst was large enough to hold the entire encoded block. Otherw
snappy/encode.go:81
next →1–100 of 607, ranked by callers