Documentation ¶
Index ¶
- type DriverStub
- func (d *DriverStub) Close() error
- func (d *DriverStub) FinalizedBlock(headerHash []byte)
- func (d *DriverStub) IsInterfaceNil() bool
- func (d *DriverStub) RevertIndexedBlock(header data.HeaderHandler, body data.BodyHandler)
- func (d *DriverStub) SaveAccounts(timestamp uint64, acc []data.UserAccountHandler)
- func (d *DriverStub) SaveBlock(args *indexer.ArgsSaveBlockData)
- func (d *DriverStub) SaveRoundsInfo(roundsInfos []*indexer.RoundInfo)
- func (d *DriverStub) SaveValidatorsPubKeys(validatorsPubKeys map[uint32][][]byte, epoch uint32)
- func (d *DriverStub) SaveValidatorsRating(indexID string, infoRating []*indexer.ValidatorRatingInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverStub ¶
type DriverStub struct { SaveBlockCalled func(args *indexer.ArgsSaveBlockData) RevertBlockCalled func(header data.HeaderHandler, body data.BodyHandler) SaveRoundsInfoCalled func(roundsInfos []*indexer.RoundInfo) SaveValidatorsPubKeysCalled func(validatorsPubKeys map[uint32][][]byte, epoch uint32) SaveValidatorsRatingCalled func(indexID string, infoRating []*indexer.ValidatorRatingInfo) SaveAccountsCalled func(timestamp uint64, acc []data.UserAccountHandler) FinalizedBlockCalled func(headerHash []byte) CloseCalled func() error }
DriverStub -
func (*DriverStub) FinalizedBlock ¶ added in v1.2.24
func (d *DriverStub) FinalizedBlock(headerHash []byte)
FinalizedBlock -
func (*DriverStub) RevertIndexedBlock ¶
func (d *DriverStub) RevertIndexedBlock(header data.HeaderHandler, body data.BodyHandler)
RevertIndexedBlock -
func (*DriverStub) SaveAccounts ¶
func (d *DriverStub) SaveAccounts(timestamp uint64, acc []data.UserAccountHandler)
SaveAccounts -
func (*DriverStub) SaveBlock ¶
func (d *DriverStub) SaveBlock(args *indexer.ArgsSaveBlockData)
SaveBlock -
func (*DriverStub) SaveRoundsInfo ¶
func (d *DriverStub) SaveRoundsInfo(roundsInfos []*indexer.RoundInfo)
SaveRoundsInfo -
func (*DriverStub) SaveValidatorsPubKeys ¶
func (d *DriverStub) SaveValidatorsPubKeys(validatorsPubKeys map[uint32][][]byte, epoch uint32)
SaveValidatorsPubKeys -
func (*DriverStub) SaveValidatorsRating ¶
func (d *DriverStub) SaveValidatorsRating(indexID string, infoRating []*indexer.ValidatorRatingInfo)
SaveValidatorsRating -
Click to show internal directories.
Click to hide internal directories.