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 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) CreateLedger ¶
func (*LedgerMgr) GetLedgerIDs ¶
func (*LedgerMgr) OpenLedger ¶
func (m *LedgerMgr) OpenLedger(id string) (ledger.PeerLedger, error)
Click to show internal directories.
Click to hide internal directories.