mock

package
v1.2.38-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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) Close

func (d *DriverStub) Close() error

Close -

func (*DriverStub) FinalizedBlock added in v1.2.24

func (d *DriverStub) FinalizedBlock(headerHash []byte) error

FinalizedBlock -

func (*DriverStub) IsInterfaceNil

func (d *DriverStub) IsInterfaceNil() bool

IsInterfaceNil -

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 -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL