Documentation ¶
Index ¶
- type CoreComponentsMock
- func (ccm *CoreComponentsMock) AddressPubKeyConverter() core.PubkeyConverter
- func (ccm *CoreComponentsMock) AlarmScheduler() core.TimersScheduler
- func (ccm *CoreComponentsMock) ArwenChangeLocker() common.Locker
- func (ccm *CoreComponentsMock) ChainID() string
- func (ccm *CoreComponentsMock) ChanStopNodeProcess() chan endProcess.ArgEndProcess
- func (ccm *CoreComponentsMock) CheckSubcomponents() error
- func (ccm *CoreComponentsMock) Close() error
- func (ccm *CoreComponentsMock) Create() error
- func (ccm *CoreComponentsMock) EconomicsData() process.EconomicsDataHandler
- func (ccm *CoreComponentsMock) EncodedAddressLen() uint32
- func (ccm *CoreComponentsMock) EpochNotifier() process.EpochNotifier
- func (ccm *CoreComponentsMock) EpochStartNotifierWithConfirm() factory.EpochStartNotifierWithConfirm
- func (ccm *CoreComponentsMock) GenesisNodesSetup() sharding.GenesisNodesSetupHandler
- func (ccm *CoreComponentsMock) GenesisTime() time.Time
- func (ccm *CoreComponentsMock) Hasher() hashing.Hasher
- func (ccm *CoreComponentsMock) InternalMarshalizer() marshal.Marshalizer
- func (ccm *CoreComponentsMock) IsInterfaceNil() bool
- func (ccm *CoreComponentsMock) MinTransactionVersion() uint32
- func (ccm *CoreComponentsMock) NodeTypeProvider() core.NodeTypeProviderHandler
- func (ccm *CoreComponentsMock) NodesShuffler() sharding.NodesShuffler
- func (ccm *CoreComponentsMock) PathHandler() storage.PathManagerHandler
- func (ccm *CoreComponentsMock) Rater() sharding.PeerAccountListAndRatingHandler
- func (ccm *CoreComponentsMock) RatingsData() process.RatingsInfoHandler
- func (ccm *CoreComponentsMock) RoundHandler() consensus.RoundHandler
- func (ccm *CoreComponentsMock) SetInternalMarshalizer(m marshal.Marshalizer) error
- func (ccm *CoreComponentsMock) StatusHandler() core.AppStatusHandler
- func (ccm *CoreComponentsMock) StatusHandlerUtils() nodeFactory.StatusHandlersUtils
- func (ccm *CoreComponentsMock) String() string
- func (ccm *CoreComponentsMock) SyncTimer() ntp.SyncTimer
- func (ccm *CoreComponentsMock) TxMarshalizer() marshal.Marshalizer
- func (ccm *CoreComponentsMock) TxSignHasher() hashing.Hasher
- func (ccm *CoreComponentsMock) TxVersionChecker() process.TxVersionCheckerHandler
- func (ccm *CoreComponentsMock) Uint64ByteSliceConverter() typeConverters.Uint64ByteSliceConverter
- func (ccm *CoreComponentsMock) ValidatorPubKeyConverter() core.PubkeyConverter
- func (ccm *CoreComponentsMock) VmMarshalizer() marshal.Marshalizer
- func (ccm *CoreComponentsMock) Watchdog() core.WatchdogTimer
- type CryptoComponentsMock
- func (ccm *CryptoComponentsMock) BlockSignKeyGen() crypto.KeyGenerator
- func (ccm *CryptoComponentsMock) BlockSigner() crypto.SingleSigner
- func (ccm *CryptoComponentsMock) CheckSubcomponents() error
- func (ccm *CryptoComponentsMock) Clone() interface{}
- func (ccm *CryptoComponentsMock) Close() error
- func (ccm *CryptoComponentsMock) Create() error
- func (ccm *CryptoComponentsMock) IsInterfaceNil() bool
- func (ccm *CryptoComponentsMock) MessageSignVerifier() vm.MessageSignVerifier
- func (ccm *CryptoComponentsMock) MultiSigner() crypto.MultiSigner
- func (ccm *CryptoComponentsMock) PeerSignatureHandler() crypto.PeerSignatureHandler
- func (ccm *CryptoComponentsMock) PrivateKey() crypto.PrivateKey
- func (ccm *CryptoComponentsMock) PrivateKeyBytes() []byte
- func (ccm *CryptoComponentsMock) PublicKey() crypto.PublicKey
- func (ccm *CryptoComponentsMock) PublicKeyBytes() []byte
- func (ccm *CryptoComponentsMock) PublicKeyString() string
- func (ccm *CryptoComponentsMock) SetMultiSigner(ms crypto.MultiSigner) error
- func (ccm *CryptoComponentsMock) String() string
- func (ccm *CryptoComponentsMock) TxSignKeyGen() crypto.KeyGenerator
- func (ccm *CryptoComponentsMock) TxSingleSigner() crypto.SingleSigner
- type DataComponentsMock
- func (dcm *DataComponentsMock) Blockchain() data.ChainHandler
- func (dcm *DataComponentsMock) CheckSubcomponents() error
- func (dcm *DataComponentsMock) Clone() interface{}
- func (dcm *DataComponentsMock) Close() error
- func (dcm *DataComponentsMock) Create() error
- func (dcm *DataComponentsMock) Datapool() dataRetriever.PoolsHolder
- func (dcm *DataComponentsMock) EconomicsHandler() factory.EconomicsHandler
- func (dcm *DataComponentsMock) IsInterfaceNil() bool
- func (dcm *DataComponentsMock) MiniBlocksProvider() factory.MiniBlockProvider
- func (dcm *DataComponentsMock) SetBlockchain(chain data.ChainHandler)
- func (dcm *DataComponentsMock) StorageService() dataRetriever.StorageService
- func (dcm *DataComponentsMock) String() string
- type NetworkComponentsMock
- func (ncm *NetworkComponentsMock) CheckSubcomponents() error
- func (ncm *NetworkComponentsMock) Close() error
- func (ncm *NetworkComponentsMock) Create() error
- func (ncm *NetworkComponentsMock) InputAntiFloodHandler() factory.P2PAntifloodHandler
- func (ncm *NetworkComponentsMock) IsInterfaceNil() bool
- func (ncm *NetworkComponentsMock) NetworkMessenger() p2p.Messenger
- func (ncm *NetworkComponentsMock) OutputAntiFloodHandler() factory.P2PAntifloodHandler
- func (ncm *NetworkComponentsMock) PeerBlackListHandler() process.PeerBlackListCacher
- func (ncm *NetworkComponentsMock) PeerHonestyHandler() factory.PeerHonestyHandler
- func (ncm *NetworkComponentsMock) PreferredPeersHolderHandler() factory.PreferredPeersHolderHandler
- func (ncm *NetworkComponentsMock) PubKeyCacher() process.TimeCacher
- func (ncm *NetworkComponentsMock) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreComponentsMock ¶
type CoreComponentsMock struct { IntMarsh marshal.Marshalizer TxMarsh marshal.Marshalizer VmMarsh marshal.Marshalizer Hash hashing.Hasher TxSignHasherField hashing.Hasher UInt64ByteSliceConv typeConverters.Uint64ByteSliceConverter AddrPubKeyConv core.PubkeyConverter ValPubKeyConv core.PubkeyConverter PathHdl storage.PathManagerHandler ChainIdCalled func() string MinTransactionVersionCalled func() uint32 StatusHdlUtils nodeFactory.StatusHandlersUtils AppStatusHdl core.AppStatusHandler WDTimer core.WatchdogTimer Alarm core.TimersScheduler NtpTimer ntp.SyncTimer RoundHandlerField consensus.RoundHandler EconomicsHandler process.EconomicsDataHandler RatingsConfig process.RatingsInfoHandler RatingHandler sharding.PeerAccountListAndRatingHandler NodesConfig sharding.GenesisNodesSetupHandler EpochChangeNotifier process.EpochNotifier EpochNotifierWithConfirm factory.EpochStartNotifierWithConfirm ChanStopProcess chan endProcess.ArgEndProcess Shuffler sharding.NodesShuffler TxVersionCheckHandler process.TxVersionCheckerHandler StartTime time.Time NodeTypeProviderField core.NodeTypeProviderHandler ArwenChangeLockerInternal common.Locker }
CoreComponentsMock -
func (*CoreComponentsMock) AddressPubKeyConverter ¶
func (ccm *CoreComponentsMock) AddressPubKeyConverter() core.PubkeyConverter
AddressPubKeyConverter -
func (*CoreComponentsMock) AlarmScheduler ¶
func (ccm *CoreComponentsMock) AlarmScheduler() core.TimersScheduler
AlarmScheduler -
func (*CoreComponentsMock) ArwenChangeLocker ¶ added in v1.2.23
func (ccm *CoreComponentsMock) ArwenChangeLocker() common.Locker
ArwenChangeLocker -
func (*CoreComponentsMock) ChanStopNodeProcess ¶
func (ccm *CoreComponentsMock) ChanStopNodeProcess() chan endProcess.ArgEndProcess
ChanStopNodeProcess -
func (*CoreComponentsMock) CheckSubcomponents ¶
func (ccm *CoreComponentsMock) CheckSubcomponents() error
CheckSubcomponents -
func (*CoreComponentsMock) EconomicsData ¶
func (ccm *CoreComponentsMock) EconomicsData() process.EconomicsDataHandler
EconomicsData -
func (*CoreComponentsMock) EncodedAddressLen ¶
func (ccm *CoreComponentsMock) EncodedAddressLen() uint32
EncodedAddressLen -
func (*CoreComponentsMock) EpochNotifier ¶
func (ccm *CoreComponentsMock) EpochNotifier() process.EpochNotifier
EpochNotifier -
func (*CoreComponentsMock) EpochStartNotifierWithConfirm ¶
func (ccm *CoreComponentsMock) EpochStartNotifierWithConfirm() factory.EpochStartNotifierWithConfirm
EpochStartNotifierWithConfirm -
func (*CoreComponentsMock) GenesisNodesSetup ¶
func (ccm *CoreComponentsMock) GenesisNodesSetup() sharding.GenesisNodesSetupHandler
GenesisNodesSetup -
func (*CoreComponentsMock) GenesisTime ¶
func (ccm *CoreComponentsMock) GenesisTime() time.Time
GenesisTime -
func (*CoreComponentsMock) InternalMarshalizer ¶
func (ccm *CoreComponentsMock) InternalMarshalizer() marshal.Marshalizer
InternalMarshalizer -
func (*CoreComponentsMock) IsInterfaceNil ¶
func (ccm *CoreComponentsMock) IsInterfaceNil() bool
IsInterfaceNil -
func (*CoreComponentsMock) MinTransactionVersion ¶
func (ccm *CoreComponentsMock) MinTransactionVersion() uint32
MinTransactionVersion -
func (*CoreComponentsMock) NodeTypeProvider ¶ added in v1.2.4
func (ccm *CoreComponentsMock) NodeTypeProvider() core.NodeTypeProviderHandler
NodeTypeProvider -
func (*CoreComponentsMock) NodesShuffler ¶
func (ccm *CoreComponentsMock) NodesShuffler() sharding.NodesShuffler
NodesShuffler -
func (*CoreComponentsMock) PathHandler ¶
func (ccm *CoreComponentsMock) PathHandler() storage.PathManagerHandler
PathHandler -
func (*CoreComponentsMock) Rater ¶
func (ccm *CoreComponentsMock) Rater() sharding.PeerAccountListAndRatingHandler
Rater -
func (*CoreComponentsMock) RatingsData ¶
func (ccm *CoreComponentsMock) RatingsData() process.RatingsInfoHandler
RatingsData -
func (*CoreComponentsMock) RoundHandler ¶
func (ccm *CoreComponentsMock) RoundHandler() consensus.RoundHandler
RoundHandler -
func (*CoreComponentsMock) SetInternalMarshalizer ¶
func (ccm *CoreComponentsMock) SetInternalMarshalizer(m marshal.Marshalizer) error
SetInternalMarshalizer -
func (*CoreComponentsMock) StatusHandler ¶
func (ccm *CoreComponentsMock) StatusHandler() core.AppStatusHandler
StatusHandler -
func (*CoreComponentsMock) StatusHandlerUtils ¶
func (ccm *CoreComponentsMock) StatusHandlerUtils() nodeFactory.StatusHandlersUtils
StatusHandlerUtils -
func (*CoreComponentsMock) String ¶ added in v1.2.12
func (ccm *CoreComponentsMock) String() string
String -
func (*CoreComponentsMock) SyncTimer ¶
func (ccm *CoreComponentsMock) SyncTimer() ntp.SyncTimer
SyncTimer -
func (*CoreComponentsMock) TxMarshalizer ¶
func (ccm *CoreComponentsMock) TxMarshalizer() marshal.Marshalizer
TxMarshalizer -
func (*CoreComponentsMock) TxSignHasher ¶
func (ccm *CoreComponentsMock) TxSignHasher() hashing.Hasher
TxSignHasher -
func (*CoreComponentsMock) TxVersionChecker ¶
func (ccm *CoreComponentsMock) TxVersionChecker() process.TxVersionCheckerHandler
TxVersionChecker -
func (*CoreComponentsMock) Uint64ByteSliceConverter ¶
func (ccm *CoreComponentsMock) Uint64ByteSliceConverter() typeConverters.Uint64ByteSliceConverter
Uint64ByteSliceConverter -
func (*CoreComponentsMock) ValidatorPubKeyConverter ¶
func (ccm *CoreComponentsMock) ValidatorPubKeyConverter() core.PubkeyConverter
ValidatorPubKeyConverter -
func (*CoreComponentsMock) VmMarshalizer ¶
func (ccm *CoreComponentsMock) VmMarshalizer() marshal.Marshalizer
VmMarshalizer -
func (*CoreComponentsMock) Watchdog ¶
func (ccm *CoreComponentsMock) Watchdog() core.WatchdogTimer
Watchdog -
type CryptoComponentsMock ¶
type CryptoComponentsMock struct { PubKey crypto.PublicKey PrivKey crypto.PrivateKey PubKeyString string PrivKeyBytes []byte PubKeyBytes []byte BlockSig crypto.SingleSigner TxSig crypto.SingleSigner MultiSig crypto.MultiSigner PeerSignHandler crypto.PeerSignatureHandler BlKeyGen crypto.KeyGenerator TxKeyGen crypto.KeyGenerator MsgSigVerifier vm.MessageSignVerifier // contains filtered or unexported fields }
CryptoComponentsMock -
func (*CryptoComponentsMock) BlockSignKeyGen ¶
func (ccm *CryptoComponentsMock) BlockSignKeyGen() crypto.KeyGenerator
BlockSignKeyGen -
func (*CryptoComponentsMock) BlockSigner ¶
func (ccm *CryptoComponentsMock) BlockSigner() crypto.SingleSigner
BlockSigner -
func (*CryptoComponentsMock) CheckSubcomponents ¶
func (ccm *CryptoComponentsMock) CheckSubcomponents() error
CheckSubcomponents -
func (*CryptoComponentsMock) IsInterfaceNil ¶
func (ccm *CryptoComponentsMock) IsInterfaceNil() bool
IsInterfaceNil -
func (*CryptoComponentsMock) MessageSignVerifier ¶
func (ccm *CryptoComponentsMock) MessageSignVerifier() vm.MessageSignVerifier
MessageSignVerifier -
func (*CryptoComponentsMock) MultiSigner ¶
func (ccm *CryptoComponentsMock) MultiSigner() crypto.MultiSigner
MultiSigner -
func (*CryptoComponentsMock) PeerSignatureHandler ¶
func (ccm *CryptoComponentsMock) PeerSignatureHandler() crypto.PeerSignatureHandler
PeerSignatureHandler -
func (*CryptoComponentsMock) PrivateKey ¶
func (ccm *CryptoComponentsMock) PrivateKey() crypto.PrivateKey
PrivateKey -
func (*CryptoComponentsMock) PrivateKeyBytes ¶
func (ccm *CryptoComponentsMock) PrivateKeyBytes() []byte
PrivateKeyBytes -
func (*CryptoComponentsMock) PublicKey ¶
func (ccm *CryptoComponentsMock) PublicKey() crypto.PublicKey
PublicKey -
func (*CryptoComponentsMock) PublicKeyBytes ¶
func (ccm *CryptoComponentsMock) PublicKeyBytes() []byte
PublicKeyBytes -
func (*CryptoComponentsMock) PublicKeyString ¶
func (ccm *CryptoComponentsMock) PublicKeyString() string
PublicKeyString -
func (*CryptoComponentsMock) SetMultiSigner ¶
func (ccm *CryptoComponentsMock) SetMultiSigner(ms crypto.MultiSigner) error
SetMultiSigner -
func (*CryptoComponentsMock) String ¶ added in v1.2.12
func (ccm *CryptoComponentsMock) String() string
String -
func (*CryptoComponentsMock) TxSignKeyGen ¶
func (ccm *CryptoComponentsMock) TxSignKeyGen() crypto.KeyGenerator
TxSignKeyGen -
func (*CryptoComponentsMock) TxSingleSigner ¶
func (ccm *CryptoComponentsMock) TxSingleSigner() crypto.SingleSigner
TxSingleSigner -
type DataComponentsMock ¶
type DataComponentsMock struct { BlockChain data.ChainHandler Store dataRetriever.StorageService DataPool dataRetriever.PoolsHolder MbProvider factory.MiniBlockProvider EconomicsData factory.EconomicsHandler // contains filtered or unexported fields }
DataComponentsMock -
func (*DataComponentsMock) Blockchain ¶
func (dcm *DataComponentsMock) Blockchain() data.ChainHandler
Blockchain -
func (*DataComponentsMock) CheckSubcomponents ¶
func (dcm *DataComponentsMock) CheckSubcomponents() error
CheckSubcomponents -
func (*DataComponentsMock) Datapool ¶
func (dcm *DataComponentsMock) Datapool() dataRetriever.PoolsHolder
Datapool -
func (*DataComponentsMock) EconomicsHandler ¶
func (dcm *DataComponentsMock) EconomicsHandler() factory.EconomicsHandler
EconomicsHandler -
func (*DataComponentsMock) IsInterfaceNil ¶
func (dcm *DataComponentsMock) IsInterfaceNil() bool
IsInterfaceNil -
func (*DataComponentsMock) MiniBlocksProvider ¶
func (dcm *DataComponentsMock) MiniBlocksProvider() factory.MiniBlockProvider
MiniBlocksProvider -
func (*DataComponentsMock) SetBlockchain ¶
func (dcm *DataComponentsMock) SetBlockchain(chain data.ChainHandler)
SetBlockchain -
func (*DataComponentsMock) StorageService ¶
func (dcm *DataComponentsMock) StorageService() dataRetriever.StorageService
StorageService -
func (*DataComponentsMock) String ¶ added in v1.2.12
func (dcm *DataComponentsMock) String() string
String -
type NetworkComponentsMock ¶
type NetworkComponentsMock struct { Messenger p2p.Messenger InputAntiFlood factory.P2PAntifloodHandler OutputAntiFlood factory.P2PAntifloodHandler PeerBlackList process.PeerBlackListCacher PreferredPeersHolder factory.PreferredPeersHolderHandler }
NetworkComponentsMock -
func (*NetworkComponentsMock) CheckSubcomponents ¶
func (ncm *NetworkComponentsMock) CheckSubcomponents() error
CheckSubcomponents -
func (*NetworkComponentsMock) InputAntiFloodHandler ¶
func (ncm *NetworkComponentsMock) InputAntiFloodHandler() factory.P2PAntifloodHandler
InputAntiFloodHandler -
func (*NetworkComponentsMock) IsInterfaceNil ¶
func (ncm *NetworkComponentsMock) IsInterfaceNil() bool
IsInterfaceNil -
func (*NetworkComponentsMock) NetworkMessenger ¶
func (ncm *NetworkComponentsMock) NetworkMessenger() p2p.Messenger
NetworkMessenger -
func (*NetworkComponentsMock) OutputAntiFloodHandler ¶
func (ncm *NetworkComponentsMock) OutputAntiFloodHandler() factory.P2PAntifloodHandler
OutputAntiFloodHandler -
func (*NetworkComponentsMock) PeerBlackListHandler ¶
func (ncm *NetworkComponentsMock) PeerBlackListHandler() process.PeerBlackListCacher
PeerBlackListHandler -
func (*NetworkComponentsMock) PeerHonestyHandler ¶
func (ncm *NetworkComponentsMock) PeerHonestyHandler() factory.PeerHonestyHandler
PeerHonestyHandler -
func (*NetworkComponentsMock) PreferredPeersHolderHandler ¶ added in v1.2.3
func (ncm *NetworkComponentsMock) PreferredPeersHolderHandler() factory.PreferredPeersHolderHandler
PreferredPeersHolderHandler -
func (*NetworkComponentsMock) PubKeyCacher ¶
func (ncm *NetworkComponentsMock) PubKeyCacher() process.TimeCacher
PubKeyCacher -
func (*NetworkComponentsMock) String ¶ added in v1.2.12
func (ncm *NetworkComponentsMock) String() string
String -