Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PrefixAutoPeering defines the prefix of the autopeering db. PrefixAutoPeering byte = iota // PrefixHealth defines the prefix of the health db. PrefixHealth // PrefixTangle defines the storage prefix for the tangle. PrefixTangle // PrefixMarkers defines the storage prefix for the markers used to optimize structural checks in the tangle. PrefixMarkers // PrefixLedgerState defines the storage prefix for the ledgerstate package. PrefixLedgerState // PrefixMana defines the storage prefix for the mana package. PrefixMana // PrefixFCOB defines the storage prefix for the fcob consensus package. PrefixFCOB // PrefixEpochs defines the storage prefix for the epochs package. PrefixEpochs )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶ added in v0.2.0
type DB interface { // NewStore creates a new KVStore backed by the database. NewStore() kvstore.KVStore // Close closes a DB. Close() error // RequiresGC returns whether the database requires a call of GC() to clean deleted items. RequiresGC() bool // GC runs the garbage collection to clean deleted database items. GC() error }
DB represents a database abstraction.
Click to show internal directories.
Click to hide internal directories.