bootstrapMocks

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapParamsHandlerMock

type BootstrapParamsHandlerMock struct {
	EpochCalled       func() uint32
	SelfShardIDCalled func() uint32
	NumOfShardsCalled func() uint32
	NodesConfigCalled func() *sharding.NodesCoordinatorRegistry
}

BootstrapParamsHandlerMock -

func (*BootstrapParamsHandlerMock) Epoch

func (bphm *BootstrapParamsHandlerMock) Epoch() uint32

Epoch -

func (*BootstrapParamsHandlerMock) IsInterfaceNil

func (bphm *BootstrapParamsHandlerMock) IsInterfaceNil() bool

IsInterfaceNil -

func (*BootstrapParamsHandlerMock) NodesConfig

NodesConfig -

func (*BootstrapParamsHandlerMock) NumOfShards

func (bphm *BootstrapParamsHandlerMock) NumOfShards() uint32

NumOfShards -

func (*BootstrapParamsHandlerMock) SelfShardID

func (bphm *BootstrapParamsHandlerMock) SelfShardID() uint32

SelfShardID -

type EpochStartBootstrapperStub

type EpochStartBootstrapperStub struct {
	TrieHolder      state.TriesHolder
	StorageManagers map[string]data.StorageManager
	BootstrapCalled func() (bootstrap.Parameters, error)
}

EpochStartBootstrapperStub -

func (*EpochStartBootstrapperStub) Bootstrap

Bootstrap -

func (*EpochStartBootstrapperStub) Close

func (esbs *EpochStartBootstrapperStub) Close() error

Close -

func (*EpochStartBootstrapperStub) GetTriesComponents

func (esbs *EpochStartBootstrapperStub) GetTriesComponents() (state.TriesHolder, map[string]data.StorageManager)

GetTriesComponents -

func (*EpochStartBootstrapperStub) IsInterfaceNil

func (esbs *EpochStartBootstrapperStub) IsInterfaceNil() bool

EpochStartBootstrapperStub -

Jump to

Keyboard shortcuts

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