ledgermgmt

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLedgerAlreadyOpened = errors.New("ledger already opened")
View Source
var ErrLedgerMgmtNotInitialized = errors.New("ledger mgmt should be initialized before using")

Functions

func InitializeExistingTestEnvWithInitializer

func InitializeExistingTestEnvWithInitializer(initializer *Initializer) (cleanup func(), err error)

func InitializeTestEnv

func InitializeTestEnv(t *testing.T) (cleanup func())

func InitializeTestEnvWithInitializer

func InitializeTestEnvWithInitializer(initializer *Initializer) (cleanup func(), err error)

Types

type Initializer

type Initializer struct {
	CustomTxProcessors              map[common.HeaderType]ledger.CustomTxProcessor
	StateListeners                  []ledger.StateListener
	DeployedChaincodeInfoProvider   ledger.DeployedChaincodeInfoProvider
	MembershipInfoProvider          ledger.MembershipInfoProvider
	ChaincodeLifecycleEventProvider ledger.ChaincodeLifecycleEventProvider
	MetricsProvider                 metrics.Provider
	HealthCheckRegistry             ledger.HealthCheckRegistry
	Config                          *ledger.Config
}

type LedgerMgr

type LedgerMgr struct {
	// contains filtered or unexported fields
}

func NewLedgerMgr

func NewLedgerMgr(initializer *Initializer) *LedgerMgr

func (*LedgerMgr) Close

func (m *LedgerMgr) Close()

func (*LedgerMgr) CreateLedger

func (m *LedgerMgr) CreateLedger(id string, genesisBlock *common.Block) (ledger.PeerLedger, error)

func (*LedgerMgr) GetLedgerIDs

func (m *LedgerMgr) GetLedgerIDs() ([]string, error)

func (*LedgerMgr) OpenLedger

func (m *LedgerMgr) OpenLedger(id string) (ledger.PeerLedger, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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