ledger

package
v0.8.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

README

Insolar — Ledger

Record storage engine

Go Report Card GoDoc

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

func GetLedgerComponents added in v0.6.3

func GetLedgerComponents(conf configuration.Ledger, certificate core.Certificate) []interface{}

GetLedgerComponents returns ledger components.

Types

type Ledger

type Ledger struct {
	ArtifactManager core.ArtifactManager `inject:""`
	PulseManager    core.PulseManager    `inject:""`
	JetCoordinator  core.JetCoordinator  `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

NewTestLedger is the util function for creation of Ledger with provided private members (suitable for tests).

func (*Ledger) GetArtifactManager deprecated added in v0.2.0

func (l *Ledger) GetArtifactManager() core.ArtifactManager

Deprecated: remove after deleting TmpLedger GetArtifactManager returns artifact manager to work with.

func (*Ledger) GetJetCoordinator deprecated added in v0.2.0

func (l *Ledger) GetJetCoordinator() core.JetCoordinator

Deprecated: remove after deleting TmpLedger GetJetCoordinator returns JetCoordinator.

func (*Ledger) GetPulseManager deprecated added in v0.2.0

func (l *Ledger) GetPulseManager() core.PulseManager

Deprecated: remove after deleting TmpLedger GetPulseManager returns PulseManager.

func (*Ledger) Start added in v0.0.6

func (l *Ledger) Start(ctx context.Context) error

Start stub.

func (*Ledger) Stop added in v0.0.6

func (l *Ledger) Stop(ctx context.Context) error

Stop stops Ledger gracefully.

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 heavyclient contains heavy replication client code.
Package heavyclient contains heavy replication client code.
Package heavyserver contains methods for processing synchronization tasks on heavy node.
Package heavyserver contains methods for processing synchronization tasks on heavy node.
Package jetcoordinator is responsible for all jet manipulations.
Package jetcoordinator is responsible for all jet manipulations.
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 pulsemanager is responsible for all pulse operations.
Package pulsemanager is responsible for all pulse operations.
Package storage contains ledger storage implementation on top of BadgerDB engine.
Package storage contains ledger storage implementation on top of BadgerDB engine.
index
Package index represents indexes and meta information for records.
Package index represents indexes and meta information for records.
jet
Package jet provides methods for working with Jet objects.
Package jet provides methods for working with Jet objects.
nodes
Package nodes contains node storage
Package nodes contains node storage
record
Package record contains code and types for storage records manipulation.
Package record contains code and types for storage records manipulation.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL