mock

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 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)
	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)
	CloseCalled                 func() error
}

DriverStub -

func (*DriverStub) Close

func (d *DriverStub) Close() error

Close -

func (*DriverStub) IsInterfaceNil

func (d *DriverStub) IsInterfaceNil() bool

IsInterfaceNil -

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 -

Jump to

Keyboard shortcuts

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