Documentation
¶
Overview ¶
Package store defines the primitives of a simple key/value storage.
Documentation Last Review: 08.10.2020
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
Snapshot is a state of the store that can be read and write independently. A write is applied only to the snapshot reference.
type Transaction ¶
type Transaction interface { // OnCommit adds a callback to be executed after the transaction // successfully commits. OnCommit(func()) }
Transaction is a generic interface that store implementations can use to provide atomicity.
Directories
¶
Path | Synopsis |
---|---|
Package hashtree defines the specialization of the store as a Merkle tree.
|
Package hashtree defines the specialization of the store as a Merkle tree. |
binprefix
Package binprefix implements the hash tree interface by following the merkle binary prefix tree algorithm.
|
Package binprefix implements the hash tree interface by following the merkle binary prefix tree algorithm. |
Package kv defines the abstraction for a key/value database.
|
Package kv defines the abstraction for a key/value database. |
controller
Package controller implements a CLI controller for the key/value database.
|
Package controller implements a CLI controller for the key/value database. |
Click to show internal directories.
Click to hide internal directories.