Documentation ¶
Overview ¶
Package ledger contains high level interfaces to storage engine and multiple record types
Index ¶
- func GetLedgerComponents(conf configuration.Ledger) []interface{}
- type Ledger
- func (l *Ledger) GetArtifactManager() core.ArtifactManager
- func (l *Ledger) GetJetCoordinator() core.JetCoordinator
- func (l *Ledger) GetLocalStorage() core.LocalStorage
- func (l *Ledger) GetPulseManager() core.PulseManager
- func (l *Ledger) Start(ctx context.Context) error
- func (l *Ledger) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLedgerComponents ¶ added in v0.6.3
func GetLedgerComponents(conf configuration.Ledger) []interface{}
GetLedgerComponents returns ledger components.
Types ¶
type Ledger ¶
type Ledger struct { ArtifactManager core.ArtifactManager `inject:""` PulseManager core.PulseManager `inject:""` JetCoordinator core.JetCoordinator `inject:""` LocalStorage core.LocalStorage `inject:""` // contains filtered or unexported fields }
Ledger is the global ledger handler. Other system parts communicate with ledger through it.
func NewTestLedger ¶ added in v0.3.0
func NewTestLedger( db *storage.DB, am *artifactmanager.LedgerArtifactManager, pm *pulsemanager.PulseManager, jc *jetcoordinator.JetCoordinator, ls *localstorage.LocalStorage, ) *Ledger
NewTestLedger is the util function for creation of Ledger with provided private members (suitable for tests).
func (*Ledger) GetArtifactManager ¶ added in v0.2.0
func (l *Ledger) GetArtifactManager() core.ArtifactManager
GetArtifactManager returns artifact manager to work with.
func (*Ledger) GetJetCoordinator ¶ added in v0.2.0
func (l *Ledger) GetJetCoordinator() core.JetCoordinator
GetJetCoordinator returns JetCoordinator.
func (*Ledger) GetLocalStorage ¶ added in v0.6.3
func (l *Ledger) GetLocalStorage() core.LocalStorage
GetLocalStorage returns local storage to work with.
func (*Ledger) GetPulseManager ¶ added in v0.2.0
func (l *Ledger) GetPulseManager() core.PulseManager
GetPulseManager returns PulseManager.
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 exporter contains methods of extracting data from DB.
|
Package exporter contains methods of extracting data from DB. |
Package heavy contains methods for processing synchronization tasks on heavy node.
|
Package heavy contains methods for processing synchronization tasks on heavy node. |
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 ledgertestutils contains high level API tests and test utils for other modules.
|
Package ledgertestutils contains high level API tests and test utils for other modules. |
Package localstorage provides methods for saving data on current machine.
|
Package localstorage provides methods for saving data on current machine. |
Package pulsemanager is responsible for all pulse operations.
|
Package pulsemanager is responsible for all pulse operations. |
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.