Documentation ¶
Overview ¶
Package ledger contains high level interfaces to storage engine and multiple record types
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
type Ledger struct {
// contains filtered or unexported fields
}
Ledger is the global ledger handler. Other system parts communicate with ledger through it.
func NewLedger ¶
func NewLedger(conf configuration.Ledger) (*Ledger, error)
NewLedger creates new ledger instance.
func NewLedgerWithDB ¶ added in v0.0.6
NewLedgerWithDB creates new ledger with preconfigured storage.DB instance.
func (*Ledger) GetManager ¶ added in v0.0.5
func (l *Ledger) GetManager() core.ArtifactManager
GetManager returns artifact manager to work with.
Directories ¶
Path | Synopsis |
---|---|
Package artifactmanager provides high-level storage API for logic runner module.
|
Package artifactmanager provides high-level storage API for logic runner module. |
Package hash contains Writer interface and SHA3 hasher.
|
Package hash contains Writer interface and SHA3 hasher. |
Package index represents indexes and meta information for records.
|
Package index represents indexes and meta information for records. |
Package jetcoordinator is responsible for all jet manipulations.
|
Package jetcoordinator is responsible for all jet manipulations. |
Package jetdrop represents Jet Drops (Blocks) of a blockchain.
|
Package jetdrop represents Jet Drops (Blocks) of a blockchain. |
Package ledgertestutil contains high level API tests and test utils for other modules.
|
Package ledgertestutil contains high level API tests and test utils for other modules. |
Package record contains code and types for storage records manipulation.
|
Package record contains code and types for storage records manipulation. |
Package storage contains ledger storage implementation on top of BadgerDB engine.
|
Package storage contains ledger storage implementation on top of BadgerDB engine. |
storagetest
Package storagetest contains high level API tests and test utils for other modules.
|
Package storagetest contains high level API tests and test utils for other modules. |
Click to show internal directories.
Click to hide internal directories.