Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/golibs
/ types & classes
Types & classes
46 in github.com/cloudflare/golibs
⨍
Functions
305
◇
Types & classes
46
↓ 1 callers
TypeAlias
elslice
spacesaving/tools/perfect.go:19
↓ 1 callers
TypeAlias
sseSlice
spacesaving/rate.go:164
Struct
BytePool
bytepool/bytepool.go:17
Interface
Cache
Cache interface is fulfilled by the LRUCache and MultiLRUCache implementations.
lrucache/cache.go:29
Struct
CircularBuffer
circularbuffer/circularbuffer.go:47
Struct
Conn
Conn represents a connection to a kyoto tycoon endpoint. It uses a connection pool to efficiently communicate with the server. Conn is safe for concur
kt/kt.go:65
Struct
Count
spacesaving/count.go:11
Struct
Element
spacesaving/count.go:62
Struct
Element
spacesaving/tools/perfect.go:14
TypeAlias
Encoding
kt/kt.go:712
Struct
Error
Error is returned by all functions in this package.
kt/kt.go:45
Struct
Ewma
ewma/ewma.go:19
Struct
EwmaRate
ewma/rate.go:13
Struct
Filter
Filter implements a token bucket filter.
tokenbucket/bucket.go:15
Interface
GenericCache
lrucache/benchmark/main.go:21
Struct
KV
KV uses an explicit structure here rather than a map[string][]byte because we need ordered data.
kt/kt.go:622
Struct
LRUCache
LRUCache data structure. Never dereference it or copy it by value. Always use it through a pointer.
lrucache/lrucache.go:24
Struct
MCache
lrucache/benchmark/mcache.go:18
Struct
MultiLRUCache
MultiLRUCache data structure. Never dereference it or copy it by value. Always use it through a pointer.
lrucache/multilru.go:12
Struct
Pool
A Pool is a set of temporary objects that may be individually saved and retrieved. Any item stored in the Pool may be removed automatically by the im
pool/pool.go:38
Struct
Rate
spacesaving/rate.go:85
Struct
RateElement
spacesaving/rate.go:158
Struct
SimpleRate
spacesaving/srate.go:52
Interface
StackGetter
An interface used to get items from the stack.
circularbuffer/circularbuffer.go:38
Interface
StackPusher
An interface used to add things to the stack.
circularbuffer/circularbuffer.go:27
Struct
TrackedConn
TrackedConn is a wrapper around kt.Conn that will accept a prometheus counter vector, and keep track of number of IO operations made to KT.
kt/kt_metrics.go:12
Struct
VCache
lrucache/benchmark/vcache.go:9
Struct
Value
lrucache/benchmark/vcache.go:19
Struct
bucket
spacesaving/rate.go:23
Struct
countBucket
spacesaving/count.go:5
FuncType
decodefunc
decodefunc takes a byte slice and decodes the value in place. It returns a slice pointing into the original byte slice. It is used for decoding the in
kt/kt.go:848
Struct
element
Element is an element of a linked list.
lrucache/list.go:48
Struct
entry
Every element in the cache is linked to three data structures: Table map, PriorityQueue heap ordered by expiry and a LruList list ordered by decreasin
lrucache/lrucache.go:14
Struct
idxEl
spacesaving/rate.go:32
Struct
item
tokenbucket/bucket.go:9
Struct
list
List represents a doubly linked list. The zero value for List is an empty list ready to use.
lrucache/list.go:81
FuncType
makeCache
func(capacity uint64) lrucache.Cache
lrucache/benchmark/mcache.go:24
Struct
pool
bytepool/bytepool.go:12
TypeAlias
priorityQueue
lrucache/priorityqueue.go:7
Struct
srateBucket
spacesaving/srate.go:11
Struct
srateElement
spacesaving/srate.go:117
TypeAlias
srateHeap
spacesaving/srate.go:22
Struct
ssHeap
spacesaving/rate.go:37
Struct
testTupleEwma
ewma/ewma_test.go:10
Struct
testTupleRate
ewma/rate_test.go:10
Struct
unixDialer
kt/kt.go:294