Documentation
¶
Index ¶
- type CoreComponentsHolderStub
- func (stub *CoreComponentsHolderStub) APIEconomicsData() process.EconomicsDataHandler
- func (stub *CoreComponentsHolderStub) AddressPubKeyConverter() core.PubkeyConverter
- func (stub *CoreComponentsHolderStub) AlarmScheduler() core.TimersScheduler
- func (stub *CoreComponentsHolderStub) ChainID() string
- func (stub *CoreComponentsHolderStub) ChanStopNodeProcess() chan endProcess.ArgEndProcess
- func (stub *CoreComponentsHolderStub) EconomicsData() process.EconomicsDataHandler
- func (stub *CoreComponentsHolderStub) EnableEpochsHandler() common.EnableEpochsHandler
- func (stub *CoreComponentsHolderStub) EnableRoundsHandler() process.EnableRoundsHandler
- func (stub *CoreComponentsHolderStub) EncodedAddressLen() uint32
- func (stub *CoreComponentsHolderStub) EpochNotifier() process.EpochNotifier
- func (stub *CoreComponentsHolderStub) EpochStartNotifierWithConfirm() factory.EpochStartNotifierWithConfirm
- func (stub *CoreComponentsHolderStub) GenesisNodesSetup() sharding.GenesisNodesSetupHandler
- func (stub *CoreComponentsHolderStub) GenesisTime() time.Time
- func (stub *CoreComponentsHolderStub) HardforkTriggerPubKey() []byte
- func (stub *CoreComponentsHolderStub) Hasher() hashing.Hasher
- func (stub *CoreComponentsHolderStub) InternalMarshalizer() marshal.Marshalizer
- func (stub *CoreComponentsHolderStub) IsInterfaceNil() bool
- func (stub *CoreComponentsHolderStub) MinTransactionVersion() uint32
- func (stub *CoreComponentsHolderStub) NodeTypeProvider() core.NodeTypeProviderHandler
- func (stub *CoreComponentsHolderStub) NodesShuffler() nodesCoordinator.NodesShuffler
- func (stub *CoreComponentsHolderStub) PathHandler() storage.PathManagerHandler
- func (stub *CoreComponentsHolderStub) ProcessStatusHandler() common.ProcessStatusHandler
- func (stub *CoreComponentsHolderStub) Rater() sharding.PeerAccountListAndRatingHandler
- func (stub *CoreComponentsHolderStub) RatingsData() process.RatingsInfoHandler
- func (stub *CoreComponentsHolderStub) RoundHandler() consensus.RoundHandler
- func (stub *CoreComponentsHolderStub) RoundNotifier() process.RoundNotifier
- func (stub *CoreComponentsHolderStub) SetInternalMarshalizer(marshalizer marshal.Marshalizer) error
- func (stub *CoreComponentsHolderStub) SyncTimer() ntp.SyncTimer
- func (stub *CoreComponentsHolderStub) TxMarshalizer() marshal.Marshalizer
- func (stub *CoreComponentsHolderStub) TxSignHasher() hashing.Hasher
- func (stub *CoreComponentsHolderStub) TxVersionChecker() process.TxVersionCheckerHandler
- func (stub *CoreComponentsHolderStub) Uint64ByteSliceConverter() typeConverters.Uint64ByteSliceConverter
- func (stub *CoreComponentsHolderStub) ValidatorPubKeyConverter() core.PubkeyConverter
- func (stub *CoreComponentsHolderStub) VmMarshalizer() marshal.Marshalizer
- func (stub *CoreComponentsHolderStub) WasmVMChangeLocker() common.Locker
- func (stub *CoreComponentsHolderStub) Watchdog() core.WatchdogTimer
- type StateComponentsMock
- func (scm *StateComponentsMock) AccountsAdapter() state.AccountsAdapter
- func (scm *StateComponentsMock) AccountsAdapterAPI() state.AccountsAdapter
- func (scm *StateComponentsMock) AccountsRepository() state.AccountsRepository
- func (scm *StateComponentsMock) CheckSubcomponents() error
- func (scm *StateComponentsMock) Close() error
- func (scm *StateComponentsMock) Create() error
- func (scm *StateComponentsMock) IsInterfaceNil() bool
- func (scm *StateComponentsMock) MissingTrieNodesNotifier() common.MissingTrieNodesNotifier
- func (scm *StateComponentsMock) PeerAccounts() state.AccountsAdapter
- func (scm *StateComponentsMock) String() string
- func (scm *StateComponentsMock) TrieStorageManagers() map[string]common.StorageManager
- func (scm *StateComponentsMock) TriesContainer() common.TriesHolder
- type StatusCoreComponentsStub
- func (stub *StatusCoreComponentsStub) AppStatusHandler() core.AppStatusHandler
- func (stub *StatusCoreComponentsStub) CheckSubcomponents() error
- func (stub *StatusCoreComponentsStub) Close() error
- func (stub *StatusCoreComponentsStub) Create() error
- func (stub *StatusCoreComponentsStub) IsInterfaceNil() bool
- func (stub *StatusCoreComponentsStub) NetworkStatistics() factory.NetworkStatisticsProvider
- func (stub *StatusCoreComponentsStub) PersistentStatusHandler() factory.PersistentStatusHandler
- func (stub *StatusCoreComponentsStub) ResourceMonitor() factory.ResourceMonitor
- func (stub *StatusCoreComponentsStub) StateStatsHandler() common.StateStatisticsHandler
- func (stub *StatusCoreComponentsStub) StatusMetrics() external.StatusMetricsHandler
- func (stub *StatusCoreComponentsStub) String() string
- func (stub *StatusCoreComponentsStub) TrieSyncStatistics() factory.TrieSyncStatisticsProvider
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 ¶
func (stub *CoreComponentsHolderStub) EconomicsData() process.EconomicsDataHandler
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 ¶
func (stub *CoreComponentsHolderStub) GenesisNodesSetup() sharding.GenesisNodesSetupHandler
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 ¶
func (stub *CoreComponentsHolderStub) NodesShuffler() nodesCoordinator.NodesShuffler
NodesShuffler -
func (*CoreComponentsHolderStub) PathHandler ¶
func (stub *CoreComponentsHolderStub) PathHandler() storage.PathManagerHandler
PathHandler -
func (*CoreComponentsHolderStub) ProcessStatusHandler ¶
func (stub *CoreComponentsHolderStub) ProcessStatusHandler() common.ProcessStatusHandler
ProcessStatusHandler -
func (*CoreComponentsHolderStub) Rater ¶
func (stub *CoreComponentsHolderStub) Rater() sharding.PeerAccountListAndRatingHandler
Rater -
func (*CoreComponentsHolderStub) RatingsData ¶
func (stub *CoreComponentsHolderStub) RatingsData() process.RatingsInfoHandler
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) 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) 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 ¶
func (stub *StatusCoreComponentsStub) NetworkStatistics() factory.NetworkStatisticsProvider
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 ¶
func (stub *StatusCoreComponentsStub) StatusMetrics() external.StatusMetricsHandler
StatusMetrics -
func (*StatusCoreComponentsStub) String ¶
func (stub *StatusCoreComponentsStub) String() string
String -
func (*StatusCoreComponentsStub) TrieSyncStatistics ¶
func (stub *StatusCoreComponentsStub) TrieSyncStatistics() factory.TrieSyncStatisticsProvider
TrieSyncStatistics -