Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/siddontang/go
/ types & classes
Types & classes
121 in github.com/siddontang/go
⨍
Functions
607
◇
Types & classes
121
↓ 6 callers
TypeAlias
ObjectId
ObjectId is a unique ID identifying a BSON value. It must be exactly 12 bytes long. MongoDB objects by default have such a property set in their "_id"
bson/bson.go:166
↓ 3 callers
TypeAlias
externalPanic
bson/bson.go:554
↓ 2 callers
TypeAlias
MongoTimestamp
MongoTimestamp is a special internal type used by MongoDB that for some strange reason has its own datatype defined in BSON.
bson/bson.go:336
↓ 2 callers
TypeAlias
Symbol
The Symbol type is similar to a string and is used in languages with a distinct symbol type.
bson/bson.go:323
↓ 2 callers
TypeAlias
orderKey
bson/bson.go:338
Struct
Arena
arena/arena.go:3
TypeAlias
AtomicBool
sync2/atomic.go:134
TypeAlias
AtomicDuration
sync2/atomic.go:85
TypeAlias
AtomicInt32
sync2/atomic.go:13
TypeAlias
AtomicInt64
sync2/atomic.go:49
Struct
AtomicString
AtomicString gives you atomic-style APIs for string, but it's only a convenience wrapper that uses a mutex. So, it's not as efficient as the rest of t
sync2/atomic.go:106
TypeAlias
AtomicUint32
sync2/atomic.go:31
TypeAlias
AtomicUint64
sync2/atomic.go:67
Struct
BenchT
-------------------------------------------------------------------------- Some simple benchmarks.
bson/bson_test.go:1440
Struct
Binary
Binary is a representation for non-standard binary values. Any kind should work, but the following are known as of this writing: 0x00 - Generic. Thi
bson/bson.go:363
Struct
CacheValue
cache/lru_cache_test.go:13
Struct
ChunkedWriter
ChunkedWriter has the same interface as bytes.Buffer's write functions. It additionally provides a Reserve function that returns a []byte that the cal
bytes2/chunked_writer.go:21
Struct
Client
rpc/client.go:10
Struct
Config
config/config.go:21
Struct
Conn
websocket/conn.go:32
TypeAlias
D
D represents a BSON document containing ordered elements. For example: bson.D{{"a", 1}, {"b", true}} In some situations, such as when creating index
bson/bson.go:118
Struct
DocElem
See the D type.
bson/bson.go:121
Struct
Element
list2/list.go:5
Struct
FileHandler
FileHandler writes log to a file.
log/filehandler.go:11
Interface
Getter
-------------------------------------------------------------------------- The public API. A value implementing the bson.Getter interface will have it
bson/bson.go:61
Interface
Handler
Handler writes logs to somewhere
log/handler.go:8
Struct
Item
Item is what is stored in the cache
cache/lru_cache.go:46
Struct
JavaScript
JavaScript is a type that holds JavaScript code. If Scope is non-nil, it will be marshaled as a mapping from identifiers to values that may be used wh
bson/bson.go:384
Struct
LRUCache
LRUCache is a typical LRU cache implementation. If the cache reaches the capacity, the least recently used item is deleted from the cache. Note the c
cache/lru_cache.go:24
Struct
List
static linked list based array
list2/list.go:33
Struct
Logger
log/log.go:46
TypeAlias
M
M is a convenient alias for a map[string]interface{} map, useful for dealing with BSON in a native way. For instance: bson.M{"a": 1, "b": true} The
bson/bson.go:109
TypeAlias
MyBool
bson/bson_test.go:1030
TypeAlias
MyBytes
bson/bson_test.go:1029
TypeAlias
MyD
bson/bson_test.go:1031
TypeAlias
MyM
bson/bson_test.go:1033
TypeAlias
MyRawD
bson/bson_test.go:1032
TypeAlias
MyString
bson/bson_test.go:1028
TypeAlias
MyValue
cache/perf_test.go:11
Struct
NullHandler
NullHandler does nothing, it discards anything.
log/handler.go:35
Struct
Raw
The Raw type represents raw unprocessed BSON documents and elements. Kind is the kind of element as defined per the BSON specification, and Data is th
bson/bson.go:144
TypeAlias
RawD
RawD represents a BSON document containing raw unprocessed elements. This low-level representation may be useful when lazily processing documents of u
bson/bson.go:153
Struct
RawDocElem
See the RawD type.
bson/bson.go:156
Struct
RegEx
RegEx represents a regular expression. The Options field may contain individual characters defining the way in which the pattern should be applied, a
bson/bson.go:376
Struct
Ring
ring/ring.go:12
Struct
RotatingFileHandler
RotatingFileHandler writes log a file, if file size exceeds maxBytes, it will backup current file and open a new one. max backup file number is set b
log/filehandler.go:43
Struct
RpcError
rpc/codec.go:9
Struct
S
bson/bson_test.go:47
Struct
SectionWriter
ioutil2/sectionwriter.go:14
Struct
Semaphore
sync2/semaphore.go:17
Struct
Server
rpc/server.go:10
Interface
Setter
A value implementing the bson.Setter interface will receive the BSON value via the SetBSON method during unmarshaling, and the object itself will not
bson/bson.go:92
Struct
SocketHandler
SocketHandler writes log to a connectionl. Network protocol is simple: log length + log | log length + log. log length is uint32, bigendian. you must
log/sockethandler.go:12
Interface
StackError
This package exposes some handy traceback functionality buried in the runtime. It can also be used to provide context to errors reducing the temptati
tb/error.go:29
Struct
StreamHandler
StreamHandler writes logs to a specified io Writer, maybe stdout, stderr, etc...
log/handler.go:14
Struct
T
bson/bson_test.go:217
Struct
Ticker
time2/ticker.go:7
Struct
TimeRotatingFileHandler
TimeRotatingFileHandler writes log to a file, it will backup current and open a new one, with a period time you sepecified. refer: http://docs.python
log/filehandler.go:141
Struct
Timer
time2/sleep.go:7
Struct
TimingWheel
timingwheel/timingwheel.go:8
Struct
TypeError
bson/bson.go:524
Interface
Value
Value is the interface values that go into LRUCache need to satisfy
cache/lru_cache.go:40
Struct
Wheel
time2/wheel.go:35
TypeAlias
atomicInt32
log/log.go:36
Struct
condBool
bson/bson_test.go:947
Struct
condFloat
bson/bson_test.go:956
Struct
condIface
bson/bson_test.go:959
Struct
condInt
bson/bson_test.go:950
Struct
condMap
bson/bson_test.go:968
Struct
condPtr
bson/bson_test.go:962
Struct
condSlice
bson/bson_test.go:965
Struct
condStr
bson/bson_test.go:941
Struct
condStrNS
bson/bson_test.go:944
Struct
condStruct
bson/bson_test.go:977
Struct
condTime
bson/bson_test.go:974
Struct
condUInt
bson/bson_test.go:953
Struct
conn
rpc/conn.go:10
Struct
crossTypeItem
-------------------------------------------------------------------------- Cross-type conversion tests.
bson/bson_test.go:936
Struct
dOnIface
-------------------------------------------------------------------------- One-way marshaling tests.
bson/bson_test.go:450
Struct
decoder
bson/decode.go:40
Struct
docWithGetterField
bson/bson_test.go:863
Struct
encoder
-------------------------------------------------------------------------- Marshaling of the document value itself.
bson/encode.go:79
Struct
entry
cache/lru_cache.go:51
Struct
fieldInfo
bson/bson.go:543
Struct
ignoreField
bson/bson_test.go:454
Struct
inlineBadKeyMap
bson/bson_test.go:1023
Struct
inlineCantPtr
bson/bson_test.go:1000
Struct
inlineDupMap
bson/bson_test.go:1019
Struct
inlineDupName
bson/bson_test.go:1003
Struct
inlineInt
bson/bson_test.go:997
Struct
inlineMap
bson/bson_test.go:1007
Struct
inlineMapInt
bson/bson_test.go:1011
Struct
inlineMapMyM
bson/bson_test.go:1015
TypeAlias
intGetter
bson/bson_test.go:903
Struct
jsonType
-------------------------------------------------------------------------- ObjectId JSON marshalling.
bson/bson_test.go:1409
Struct
lockCloser
lockCloser hides all of an syscall.Handle's methods, except for Close.
filelock/file_lock_windows.go:13
Struct
lockCloser
lockCloser hides all of an os.File's methods, except for Close.
filelock/file_lock_unix.go:16
Struct
lockCloser
lockCloser hides all of an os.File's methods, except for Close.
filelock/file_lock_solaris.go:16
Struct
namedCondStr
bson/bson_test.go:971
Struct
objectIdParts
-------------------------------------------------------------------------- ObjectId parts extraction tests.
bson/bson_test.go:1315
next →
1–100 of 121, ranked by callers