Documentation ¶
Index ¶
- type OutportDataProviderStub
- type OutportStub
- func (as *OutportStub) Close() error
- func (as *OutportStub) FinalizedBlock(_ []byte)
- func (as *OutportStub) HasDrivers() bool
- func (as *OutportStub) IsInterfaceNil() bool
- func (as *OutportStub) RevertIndexedBlock(_ data.HeaderHandler, _ data.BodyHandler)
- func (as *OutportStub) SaveAccounts(_ uint64, _ map[string]*outportcore.AlteredAccount, _ uint32)
- func (as *OutportStub) SaveBlock(args *outportcore.ArgsSaveBlockData)
- func (as *OutportStub) SaveRoundsInfo(_ []*outportcore.RoundInfo)
- func (as *OutportStub) SaveValidatorsPubKeys(shardPubKeys map[uint32][][]byte, epoch uint32)
- func (as *OutportStub) SaveValidatorsRating(index string, validatorsInfo []*outportcore.ValidatorRatingInfo)
- func (as *OutportStub) SubscribeDriver(_ outport.Driver) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutportDataProviderStub ¶
type OutportDataProviderStub struct { PrepareOutportSaveBlockDataCalled func( arg process.ArgPrepareOutportSaveBlockData, ) (*outportcore.ArgsSaveBlockData, error) }
OutportDataProviderStub -
func (*OutportDataProviderStub) IsInterfaceNil ¶
func (a *OutportDataProviderStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*OutportDataProviderStub) PrepareOutportSaveBlockData ¶
func (a *OutportDataProviderStub) PrepareOutportSaveBlockData( arg process.ArgPrepareOutportSaveBlockData, ) (*outportcore.ArgsSaveBlockData, error)
PrepareOutportSaveBlockData -
type OutportStub ¶
type OutportStub struct { SaveBlockCalled func(args *outportcore.ArgsSaveBlockData) SaveValidatorsRatingCalled func(index string, validatorsInfo []*outportcore.ValidatorRatingInfo) SaveValidatorsPubKeysCalled func(shardPubKeys map[uint32][][]byte, epoch uint32) HasDriversCalled func() bool }
OutportStub is a mock implementation fot the OutportHandler interface
func (*OutportStub) FinalizedBlock ¶
func (as *OutportStub) FinalizedBlock(_ []byte)
FinalizedBlock -
func (*OutportStub) IsInterfaceNil ¶
func (as *OutportStub) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*OutportStub) RevertIndexedBlock ¶
func (as *OutportStub) RevertIndexedBlock(_ data.HeaderHandler, _ data.BodyHandler)
RevertIndexedBlock -
func (*OutportStub) SaveAccounts ¶
func (as *OutportStub) SaveAccounts(_ uint64, _ map[string]*outportcore.AlteredAccount, _ uint32)
SaveAccounts -
func (*OutportStub) SaveBlock ¶
func (as *OutportStub) SaveBlock(args *outportcore.ArgsSaveBlockData)
SaveBlock -
func (*OutportStub) SaveRoundsInfo ¶
func (as *OutportStub) SaveRoundsInfo(_ []*outportcore.RoundInfo)
SaveRoundsInfo -
func (*OutportStub) SaveValidatorsPubKeys ¶
func (as *OutportStub) SaveValidatorsPubKeys(shardPubKeys map[uint32][][]byte, epoch uint32)
SaveValidatorsPubKeys -
func (*OutportStub) SaveValidatorsRating ¶
func (as *OutportStub) SaveValidatorsRating(index string, validatorsInfo []*outportcore.ValidatorRatingInfo)
SaveValidatorsRating -
func (*OutportStub) SubscribeDriver ¶
func (as *OutportStub) SubscribeDriver(_ outport.Driver) error
SubscribeDriver -
Click to show internal directories.
Click to hide internal directories.