Documentation ¶
Index ¶
- type DriverStub
- func (d *DriverStub) Close() error
- func (d *DriverStub) FinalizedBlock(headerHash []byte) error
- func (d *DriverStub) IsInterfaceNil() bool
- func (d *DriverStub) RevertIndexedBlock(header data.HeaderHandler, body data.BodyHandler) error
- func (d *DriverStub) SaveAccounts(timestamp uint64, acc []data.UserAccountHandler) error
- func (d *DriverStub) SaveBlock(args *indexer.ArgsSaveBlockData) error
- func (d *DriverStub) SaveRoundsInfo(roundsInfos []*indexer.RoundInfo) error
- func (d *DriverStub) SaveValidatorsPubKeys(validatorsPubKeys map[uint32][][]byte, epoch uint32) error
- func (d *DriverStub) SaveValidatorsRating(indexID string, infoRating []*indexer.ValidatorRatingInfo) error
- type HTTPClientStub
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) error RevertBlockCalled func(header data.HeaderHandler, body data.BodyHandler) error SaveRoundsInfoCalled func(roundsInfos []*indexer.RoundInfo) error SaveValidatorsPubKeysCalled func(validatorsPubKeys map[uint32][][]byte, epoch uint32) error SaveValidatorsRatingCalled func(indexID string, infoRating []*indexer.ValidatorRatingInfo) error SaveAccountsCalled func(timestamp uint64, acc []data.UserAccountHandler) error FinalizedBlockCalled func(headerHash []byte) error CloseCalled func() error }
DriverStub -
func (*DriverStub) FinalizedBlock ¶ added in v1.2.24
func (d *DriverStub) FinalizedBlock(headerHash []byte) error
FinalizedBlock -
func (*DriverStub) RevertIndexedBlock ¶
func (d *DriverStub) RevertIndexedBlock(header data.HeaderHandler, body data.BodyHandler) error
RevertIndexedBlock -
func (*DriverStub) SaveAccounts ¶
func (d *DriverStub) SaveAccounts(timestamp uint64, acc []data.UserAccountHandler) error
SaveAccounts -
func (*DriverStub) SaveBlock ¶
func (d *DriverStub) SaveBlock(args *indexer.ArgsSaveBlockData) error
SaveBlock -
func (*DriverStub) SaveRoundsInfo ¶
func (d *DriverStub) SaveRoundsInfo(roundsInfos []*indexer.RoundInfo) error
SaveRoundsInfo -
func (*DriverStub) SaveValidatorsPubKeys ¶
func (d *DriverStub) SaveValidatorsPubKeys(validatorsPubKeys map[uint32][][]byte, epoch uint32) error
SaveValidatorsPubKeys -
func (*DriverStub) SaveValidatorsRating ¶
func (d *DriverStub) SaveValidatorsRating(indexID string, infoRating []*indexer.ValidatorRatingInfo) error
SaveValidatorsRating -
type HTTPClientStub ¶ added in v1.3.29
type HTTPClientStub struct {
PostCalled func(route string, payload interface{}, response interface{}) error
}
HTTPClientStub -
func (*HTTPClientStub) IsInterfaceNil ¶ added in v1.3.29
func (stub *HTTPClientStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*HTTPClientStub) Post ¶ added in v1.3.29
func (stub *HTTPClientStub) Post(route string, payload interface{}, response interface{}) error
Post -
Click to show internal directories.
Click to hide internal directories.