Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deroproject/graviton
/ types & classes
Types & classes
13 in github.com/deroproject/graviton
⨍
Functions
179
◇
Types & classes
13
↓ 3 callers
Interface
node
TODO simplify node
node.go:24
Struct
Cursor
Cursor represents an iterator that can traverse over all key/value pairs in a tree in hash sorted order. Cursors can be obtained from a tree and are v
cursor.go:9
FuncType
DiffHandler
All changes are reported of this type, deleted, modified, inserted
diff_tree.go:24
Struct
Proof
This structure is used to prove existence/non-existence of a key
proof.go:20
Struct
Snapshot
Snapshot are used to access any arbitrary snapshot of entire database at any point in time snapshot refers to collective state of all trees + data
snapshot.go:11
Struct
Store
Store is the backend which is used to store the data in serialized form to disk. The data is stored in files in split format and total number of files
store.go:33
Struct
Tree
Tree structure which is the end result, TODO: tree does not cache anything currently, just caching the top level tree entries, will increase the speed
tree.go:17
Struct
diffTree
import "sync" import "encoding/binary" import "golang.org/x/xerrors" Cursor represents an iterator that can traverse over all key/value pairs in a tre
diff_tree.go:19
Struct
dummynode
used to test certain code paths, which though can be avoid now but may arise when code is maintained, developed, rewritten over a period of time
node_test.go:9
Struct
file
all file operations will go through this If this is implemented through an interface, it will trigger memory allocations on heap this crude implementa
store.go:16
Struct
inner
TODO optimize these structures for less RAM/DISK
node_inner.go:11
Struct
leaf
all gets go through value checks
node_leaf.go:11
TypeAlias
storage_layer_type
store.go:22