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 ¶ added in v1.5.0
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 ¶ added in v1.5.0
func NewCoreComponentsHolderStubFromRealComponent(coreComponents factory.CoreComponentsHolder) *CoreComponentsHolderStub
NewCoreComponentsHolderStubFromRealComponent -
func (*CoreComponentsHolderStub) APIEconomicsData ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) APIEconomicsData() process.EconomicsDataHandler
APIEconomicsData -
func (*CoreComponentsHolderStub) AddressPubKeyConverter ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) AddressPubKeyConverter() core.PubkeyConverter
AddressPubKeyConverter -
func (*CoreComponentsHolderStub) AlarmScheduler ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) AlarmScheduler() core.TimersScheduler
AlarmScheduler -
func (*CoreComponentsHolderStub) ChainID ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) ChainID() string
ChainID -
func (*CoreComponentsHolderStub) ChanStopNodeProcess ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) ChanStopNodeProcess() chan endProcess.ArgEndProcess
ChanStopNodeProcess -
func (*CoreComponentsHolderStub) EconomicsData ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) EconomicsData() process.EconomicsDataHandler
EconomicsData -
func (*CoreComponentsHolderStub) EnableEpochsHandler ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) EnableEpochsHandler() common.EnableEpochsHandler
EnableEpochsHandler -
func (*CoreComponentsHolderStub) EnableRoundsHandler ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) EnableRoundsHandler() process.EnableRoundsHandler
EnableRoundsHandler -
func (*CoreComponentsHolderStub) EncodedAddressLen ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) EncodedAddressLen() uint32
EncodedAddressLen -
func (*CoreComponentsHolderStub) EpochNotifier ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) EpochNotifier() process.EpochNotifier
EpochNotifier -
func (*CoreComponentsHolderStub) EpochStartNotifierWithConfirm ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) EpochStartNotifierWithConfirm() factory.EpochStartNotifierWithConfirm
EpochStartNotifierWithConfirm -
func (*CoreComponentsHolderStub) GenesisNodesSetup ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) GenesisNodesSetup() sharding.GenesisNodesSetupHandler
GenesisNodesSetup -
func (*CoreComponentsHolderStub) GenesisTime ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) GenesisTime() time.Time
GenesisTime -
func (*CoreComponentsHolderStub) HardforkTriggerPubKey ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) HardforkTriggerPubKey() []byte
HardforkTriggerPubKey -
func (*CoreComponentsHolderStub) Hasher ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) Hasher() hashing.Hasher
Hasher -
func (*CoreComponentsHolderStub) InternalMarshalizer ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) InternalMarshalizer() marshal.Marshalizer
InternalMarshalizer -
func (*CoreComponentsHolderStub) IsInterfaceNil ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*CoreComponentsHolderStub) MinTransactionVersion ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) MinTransactionVersion() uint32
MinTransactionVersion -
func (*CoreComponentsHolderStub) NodeTypeProvider ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) NodeTypeProvider() core.NodeTypeProviderHandler
NodeTypeProvider -
func (*CoreComponentsHolderStub) NodesShuffler ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) NodesShuffler() nodesCoordinator.NodesShuffler
NodesShuffler -
func (*CoreComponentsHolderStub) PathHandler ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) PathHandler() storage.PathManagerHandler
PathHandler -
func (*CoreComponentsHolderStub) ProcessStatusHandler ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) ProcessStatusHandler() common.ProcessStatusHandler
ProcessStatusHandler -
func (*CoreComponentsHolderStub) Rater ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) Rater() sharding.PeerAccountListAndRatingHandler
Rater -
func (*CoreComponentsHolderStub) RatingsData ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) RatingsData() process.RatingsInfoHandler
RatingsData -
func (*CoreComponentsHolderStub) RoundHandler ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) RoundHandler() consensus.RoundHandler
RoundHandler -
func (*CoreComponentsHolderStub) RoundNotifier ¶ added in v1.6.0
func (stub *CoreComponentsHolderStub) RoundNotifier() process.RoundNotifier
RoundNotifier -
func (*CoreComponentsHolderStub) SetInternalMarshalizer ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) SetInternalMarshalizer(marshalizer marshal.Marshalizer) error
SetInternalMarshalizer -
func (*CoreComponentsHolderStub) SyncTimer ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) SyncTimer() ntp.SyncTimer
SyncTimer -
func (*CoreComponentsHolderStub) TxMarshalizer ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) TxMarshalizer() marshal.Marshalizer
TxMarshalizer -
func (*CoreComponentsHolderStub) TxSignHasher ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) TxSignHasher() hashing.Hasher
TxSignHasher -
func (*CoreComponentsHolderStub) TxVersionChecker ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) TxVersionChecker() process.TxVersionCheckerHandler
TxVersionChecker -
func (*CoreComponentsHolderStub) Uint64ByteSliceConverter ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) Uint64ByteSliceConverter() typeConverters.Uint64ByteSliceConverter
Uint64ByteSliceConverter -
func (*CoreComponentsHolderStub) ValidatorPubKeyConverter ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) ValidatorPubKeyConverter() core.PubkeyConverter
ValidatorPubKeyConverter -
func (*CoreComponentsHolderStub) VmMarshalizer ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) VmMarshalizer() marshal.Marshalizer
VmMarshalizer -
func (*CoreComponentsHolderStub) WasmVMChangeLocker ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) WasmVMChangeLocker() common.Locker
WasmVMChangeLocker -
func (*CoreComponentsHolderStub) Watchdog ¶ added in v1.5.0
func (stub *CoreComponentsHolderStub) Watchdog() core.WatchdogTimer
Watchdog -
type StateComponentsMock ¶ added in v1.6.0
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 ¶ added in v1.6.0
func NewStateComponentsMockFromRealComponent(stateComponents factory.StateComponentsHolder) *StateComponentsMock
NewStateComponentsMockFromRealComponent -
func (*StateComponentsMock) AccountsAdapter ¶ added in v1.6.0
func (scm *StateComponentsMock) AccountsAdapter() state.AccountsAdapter
AccountsAdapter -
func (*StateComponentsMock) AccountsAdapterAPI ¶ added in v1.6.0
func (scm *StateComponentsMock) AccountsAdapterAPI() state.AccountsAdapter
AccountsAdapterAPI -
func (*StateComponentsMock) AccountsRepository ¶ added in v1.6.0
func (scm *StateComponentsMock) AccountsRepository() state.AccountsRepository
AccountsRepository -
func (*StateComponentsMock) CheckSubcomponents ¶ added in v1.6.0
func (scm *StateComponentsMock) CheckSubcomponents() error
CheckSubcomponents -
func (*StateComponentsMock) Close ¶ added in v1.6.0
func (scm *StateComponentsMock) Close() error
Close -
func (*StateComponentsMock) Create ¶ added in v1.6.0
func (scm *StateComponentsMock) Create() error
Create -
func (*StateComponentsMock) IsInterfaceNil ¶ added in v1.6.0
func (scm *StateComponentsMock) IsInterfaceNil() bool
IsInterfaceNil -
func (*StateComponentsMock) MissingTrieNodesNotifier ¶ added in v1.6.0
func (scm *StateComponentsMock) MissingTrieNodesNotifier() common.MissingTrieNodesNotifier
MissingTrieNodesNotifier -
func (*StateComponentsMock) PeerAccounts ¶ added in v1.6.0
func (scm *StateComponentsMock) PeerAccounts() state.AccountsAdapter
PeerAccounts -
func (*StateComponentsMock) String ¶ added in v1.6.0
func (scm *StateComponentsMock) String() string
String -
func (*StateComponentsMock) TrieStorageManagers ¶ added in v1.6.0
func (scm *StateComponentsMock) TrieStorageManagers() map[string]common.StorageManager
TrieStorageManagers -
func (*StateComponentsMock) TriesContainer ¶ added in v1.6.0
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 ¶ added in v1.7.0
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 -