Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/peterbourgon/diskv
/ types & classes
Types & classes
17 in github.com/peterbourgon/diskv
⨍
Functions
131
◇
Types & classes
17
FuncType
AdvancedTransformFunction
AdvancedTransformFunction transforms a key into a PathKey. A PathKey contains a slice of strings, where each element in the slice represents a direct
diskv.go:63
Struct
BTreeIndex
BTreeIndex is an implementation of the Index interface using google/btree.
index.go:34
Struct
BrokenReader
basic_test.go:259
Interface
Compression
Compression is an interface that Diskv uses to implement compression of data. Writer takes a destination io.Writer and returns a WriteCloser that comp
compression.go:16
Struct
CrashingReader
basic_test.go:307
Struct
Diskv
Diskv implements the Diskv interface. You shouldn't construct Diskv structures directly; instead, use the New constructor.
diskv.go:94
Interface
Index
Index is a generic interface for things that can provide an ordered list of keys.
index.go:11
FuncType
InverseTransformFunction
InverseTransformFunction takes a PathKey and converts it back to a Diskv key. In effect, it's the opposite of an AdvancedTransformFunction.
diskv.go:67
FuncType
LessFunction
LessFunction is used to initialize an Index of keys in a specific order.
index.go:19
Struct
Options
Options define a set of properties that dictate Diskv behavior. All values are optional.
diskv.go:71
Struct
PathKey
PathKey represents a string key that has been transformed to a directory and file name where the content will eventually be stored
diskv.go:28
FuncType
TransformFunction
TransformFunction transforms a key into a slice of strings, with each element in the slice representing a directory in the file path where the key's e
diskv.go:49
Struct
btreeString
btreeString is a custom data type that satisfies the BTree Less interface, making the strings it wraps sortable by the BTree package.
index.go:23
Struct
closingReader
closingReader provides a Reader that automatically closes the embedded ReadCloser when it reaches EOF
diskv.go:429
Struct
genericCompression
compression.go:53
Struct
nopWriteCloser
nopWriteCloser wraps an io.Writer and provides a no-op Close method to satisfy the io.WriteCloser interface.
diskv.go:724
Struct
siphon
siphon is like a TeeReader: it copies all data read through it to an internal buffer, and moves that buffer to the cache at EOF.
diskv.go:445