factory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreComponentsHolderStub

type CoreComponentsHolderStub struct {
	InternalMarshalizerCalled           func() marshal.Marshalizer
	SetInternalMarshalizerCalled        func(marshalizer marshal.Marshalizer) error
	TxMarshalizerCalled                 func() marshal.Marshalizer
	VmMarshalizerCalled                 func() marshal.Marshalizer
	HasherCalled                        func() hashing.Hasher
	TxSignHasherCalled                  func() hashing.Hasher
	Uint64ByteSliceConverterCalled      func() typeConverters.Uint64ByteSliceConverter
	AddressPubKeyConverterCalled        func() core.PubkeyConverter
	ValidatorPubKeyConverterCalled      func() core.PubkeyConverter
	PathHandlerCalled                   func() storage.PathManagerHandler
	WatchdogCalled                      func() core.WatchdogTimer
	AlarmSchedulerCalled                func() core.TimersScheduler
	SyncTimerCalled                     func() ntp.SyncTimer
	RoundHandlerCalled                  func() consensus.RoundHandler
	EconomicsDataCalled                 func() process.EconomicsDataHandler
	APIEconomicsDataCalled              func() process.EconomicsDataHandler
	RatingsDataCalled                   func() process.RatingsInfoHandler
	RaterCalled                         func() sharding.PeerAccountListAndRatingHandler
	GenesisNodesSetupCalled             func() sharding.GenesisNodesSetupHandler
	NodesShufflerCalled                 func() nodesCoordinator.NodesShuffler
	EpochNotifierCalled                 func() process.EpochNotifier
	EnableRoundsHandlerCalled           func() process.EnableRoundsHandler
	EpochStartNotifierWithConfirmCalled func() factory.EpochStartNotifierWithConfirm
	ChanStopNodeProcessCalled           func() chan endProcess.ArgEndProcess
	GenesisTimeCalled                   func() time.Time
	ChainIDCalled                       func() string
	MinTransactionVersionCalled         func() uint32
	TxVersionCheckerCalled              func() process.TxVersionCheckerHandler
	EncodedAddressLenCalled             func() uint32
	NodeTypeProviderCalled              func() core.NodeTypeProviderHandler
	WasmVMChangeLockerCalled            func() common.Locker
	ProcessStatusHandlerCalled          func() common.ProcessStatusHandler
	HardforkTriggerPubKeyCalled         func() []byte
	EnableEpochsHandlerCalled           func() common.EnableEpochsHandler
	RoundNotifierCalled                 func() process.RoundNotifier
}

CoreComponentsHolderStub -

func NewCoreComponentsHolderStubFromRealComponent

func NewCoreComponentsHolderStubFromRealComponent(coreComponents factory.CoreComponentsHolder) *CoreComponentsHolderStub

NewCoreComponentsHolderStubFromRealComponent -

func (*CoreComponentsHolderStub) APIEconomicsData

func (stub *CoreComponentsHolderStub) APIEconomicsData() process.EconomicsDataHandler

APIEconomicsData -

func (*CoreComponentsHolderStub) AddressPubKeyConverter

func (stub *CoreComponentsHolderStub) AddressPubKeyConverter() core.PubkeyConverter

AddressPubKeyConverter -

func (*CoreComponentsHolderStub) AlarmScheduler

func (stub *CoreComponentsHolderStub) AlarmScheduler() core.TimersScheduler

AlarmScheduler -

func (*CoreComponentsHolderStub) ChainID

func (stub *CoreComponentsHolderStub) ChainID() string

ChainID -

func (*CoreComponentsHolderStub) ChanStopNodeProcess

func (stub *CoreComponentsHolderStub) ChanStopNodeProcess() chan endProcess.ArgEndProcess

ChanStopNodeProcess -

func (*CoreComponentsHolderStub) EconomicsData

EconomicsData -

func (*CoreComponentsHolderStub) EnableEpochsHandler

func (stub *CoreComponentsHolderStub) EnableEpochsHandler() common.EnableEpochsHandler

EnableEpochsHandler -

func (*CoreComponentsHolderStub) EnableRoundsHandler

func (stub *CoreComponentsHolderStub) EnableRoundsHandler() process.EnableRoundsHandler

EnableRoundsHandler -

func (*CoreComponentsHolderStub) EncodedAddressLen

func (stub *CoreComponentsHolderStub) EncodedAddressLen() uint32

EncodedAddressLen -

func (*CoreComponentsHolderStub) EpochNotifier

func (stub *CoreComponentsHolderStub) EpochNotifier() process.EpochNotifier

EpochNotifier -

func (*CoreComponentsHolderStub) EpochStartNotifierWithConfirm

func (stub *CoreComponentsHolderStub) EpochStartNotifierWithConfirm() factory.EpochStartNotifierWithConfirm

EpochStartNotifierWithConfirm -

func (*CoreComponentsHolderStub) GenesisNodesSetup

GenesisNodesSetup -

func (*CoreComponentsHolderStub) GenesisTime

func (stub *CoreComponentsHolderStub) GenesisTime() time.Time

GenesisTime -

func (*CoreComponentsHolderStub) HardforkTriggerPubKey

func (stub *CoreComponentsHolderStub) HardforkTriggerPubKey() []byte

HardforkTriggerPubKey -

func (*CoreComponentsHolderStub) Hasher

func (stub *CoreComponentsHolderStub) Hasher() hashing.Hasher

Hasher -

func (*CoreComponentsHolderStub) InternalMarshalizer

func (stub *CoreComponentsHolderStub) InternalMarshalizer() marshal.Marshalizer

InternalMarshalizer -

func (*CoreComponentsHolderStub) IsInterfaceNil

func (stub *CoreComponentsHolderStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*CoreComponentsHolderStub) MinTransactionVersion

func (stub *CoreComponentsHolderStub) MinTransactionVersion() uint32

MinTransactionVersion -

func (*CoreComponentsHolderStub) NodeTypeProvider

func (stub *CoreComponentsHolderStub) NodeTypeProvider() core.NodeTypeProviderHandler

NodeTypeProvider -

func (*CoreComponentsHolderStub) NodesShuffler

NodesShuffler -

func (*CoreComponentsHolderStub) PathHandler

PathHandler -

func (*CoreComponentsHolderStub) ProcessStatusHandler

func (stub *CoreComponentsHolderStub) ProcessStatusHandler() common.ProcessStatusHandler

ProcessStatusHandler -

func (*CoreComponentsHolderStub) Rater

Rater -

func (*CoreComponentsHolderStub) RatingsData

RatingsData -

func (*CoreComponentsHolderStub) RoundHandler

func (stub *CoreComponentsHolderStub) RoundHandler() consensus.RoundHandler

RoundHandler -

func (*CoreComponentsHolderStub) RoundNotifier

func (stub *CoreComponentsHolderStub) RoundNotifier() process.RoundNotifier

RoundNotifier -

func (*CoreComponentsHolderStub) SetInternalMarshalizer

func (stub *CoreComponentsHolderStub) SetInternalMarshalizer(marshalizer marshal.Marshalizer) error

SetInternalMarshalizer -

func (*CoreComponentsHolderStub) SyncTimer

func (stub *CoreComponentsHolderStub) SyncTimer() ntp.SyncTimer

SyncTimer -

func (*CoreComponentsHolderStub) TxMarshalizer

func (stub *CoreComponentsHolderStub) TxMarshalizer() marshal.Marshalizer

TxMarshalizer -

func (*CoreComponentsHolderStub) TxSignHasher

func (stub *CoreComponentsHolderStub) TxSignHasher() hashing.Hasher

TxSignHasher -

func (*CoreComponentsHolderStub) TxVersionChecker

func (stub *CoreComponentsHolderStub) TxVersionChecker() process.TxVersionCheckerHandler

TxVersionChecker -

func (*CoreComponentsHolderStub) Uint64ByteSliceConverter

func (stub *CoreComponentsHolderStub) Uint64ByteSliceConverter() typeConverters.Uint64ByteSliceConverter

Uint64ByteSliceConverter -

func (*CoreComponentsHolderStub) ValidatorPubKeyConverter

func (stub *CoreComponentsHolderStub) ValidatorPubKeyConverter() core.PubkeyConverter

ValidatorPubKeyConverter -

func (*CoreComponentsHolderStub) VmMarshalizer

func (stub *CoreComponentsHolderStub) VmMarshalizer() marshal.Marshalizer

VmMarshalizer -

func (*CoreComponentsHolderStub) WasmVMChangeLocker

func (stub *CoreComponentsHolderStub) WasmVMChangeLocker() common.Locker

WasmVMChangeLocker -

func (*CoreComponentsHolderStub) Watchdog

func (stub *CoreComponentsHolderStub) Watchdog() core.WatchdogTimer

Watchdog -

type StateComponentsMock

type StateComponentsMock struct {
	PeersAcc                 state.AccountsAdapter
	Accounts                 state.AccountsAdapter
	AccountsAPI              state.AccountsAdapter
	AccountsAdapterAPICalled func() state.AccountsAdapter
	AccountsRepo             state.AccountsRepository
	Tries                    common.TriesHolder
	StorageManagers          map[string]common.StorageManager
	MissingNodesNotifier     common.MissingTrieNodesNotifier
}

StateComponentsMock -

func NewStateComponentsMockFromRealComponent

func NewStateComponentsMockFromRealComponent(stateComponents factory.StateComponentsHolder) *StateComponentsMock

NewStateComponentsMockFromRealComponent -

func (*StateComponentsMock) AccountsAdapter

func (scm *StateComponentsMock) AccountsAdapter() state.AccountsAdapter

AccountsAdapter -

func (*StateComponentsMock) AccountsAdapterAPI

func (scm *StateComponentsMock) AccountsAdapterAPI() state.AccountsAdapter

AccountsAdapterAPI -

func (*StateComponentsMock) AccountsRepository

func (scm *StateComponentsMock) AccountsRepository() state.AccountsRepository

AccountsRepository -

func (*StateComponentsMock) CheckSubcomponents

func (scm *StateComponentsMock) CheckSubcomponents() error

CheckSubcomponents -

func (*StateComponentsMock) Close

func (scm *StateComponentsMock) Close() error

Close -

func (*StateComponentsMock) Create

func (scm *StateComponentsMock) Create() error

Create -

func (*StateComponentsMock) IsInterfaceNil

func (scm *StateComponentsMock) IsInterfaceNil() bool

IsInterfaceNil -

func (*StateComponentsMock) MissingTrieNodesNotifier

func (scm *StateComponentsMock) MissingTrieNodesNotifier() common.MissingTrieNodesNotifier

MissingTrieNodesNotifier -

func (*StateComponentsMock) PeerAccounts

func (scm *StateComponentsMock) PeerAccounts() state.AccountsAdapter

PeerAccounts -

func (*StateComponentsMock) String

func (scm *StateComponentsMock) String() string

String -

func (*StateComponentsMock) TrieStorageManagers

func (scm *StateComponentsMock) TrieStorageManagers() map[string]common.StorageManager

TrieStorageManagers -

func (*StateComponentsMock) TriesContainer

func (scm *StateComponentsMock) TriesContainer() common.TriesHolder

TriesContainer -

type StatusCoreComponentsStub

type StatusCoreComponentsStub struct {
	ResourceMonitorField         factory.ResourceMonitor
	NetworkStatisticsField       factory.NetworkStatisticsProvider
	TrieSyncStatisticsField      factory.TrieSyncStatisticsProvider
	AppStatusHandlerField        core.AppStatusHandler
	AppStatusHandlerCalled       func() core.AppStatusHandler
	StatusMetricsField           external.StatusMetricsHandler
	PersistentStatusHandlerField factory.PersistentStatusHandler
	StateStatsHandlerField       common.StateStatisticsHandler
}

StatusCoreComponentsStub -

func (*StatusCoreComponentsStub) AppStatusHandler

func (stub *StatusCoreComponentsStub) AppStatusHandler() core.AppStatusHandler

AppStatusHandler -

func (*StatusCoreComponentsStub) CheckSubcomponents

func (stub *StatusCoreComponentsStub) CheckSubcomponents() error

CheckSubcomponents -

func (*StatusCoreComponentsStub) Close

func (stub *StatusCoreComponentsStub) Close() error

Close -

func (*StatusCoreComponentsStub) Create

func (stub *StatusCoreComponentsStub) Create() error

Create -

func (*StatusCoreComponentsStub) IsInterfaceNil

func (stub *StatusCoreComponentsStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*StatusCoreComponentsStub) NetworkStatistics

NetworkStatistics -

func (*StatusCoreComponentsStub) PersistentStatusHandler

func (stub *StatusCoreComponentsStub) PersistentStatusHandler() factory.PersistentStatusHandler

PersistentStatusHandler -

func (*StatusCoreComponentsStub) ResourceMonitor

func (stub *StatusCoreComponentsStub) ResourceMonitor() factory.ResourceMonitor

ResourceMonitor -

func (*StatusCoreComponentsStub) StateStatsHandler

func (stub *StatusCoreComponentsStub) StateStatsHandler() common.StateStatisticsHandler

StateStatsHandler -

func (*StatusCoreComponentsStub) StatusMetrics

StatusMetrics -

func (*StatusCoreComponentsStub) String

func (stub *StatusCoreComponentsStub) String() string

String -

func (*StatusCoreComponentsStub) TrieSyncStatistics

func (stub *StatusCoreComponentsStub) TrieSyncStatistics() factory.TrieSyncStatisticsProvider

TrieSyncStatistics -

Jump to

Keyboard shortcuts

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