mocks

package
v1.3.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbigenContract

type AbigenContract struct {
	mock.Mock
}

AbigenContract is an autogenerated mock type for the AbigenContract type

func (*AbigenContract) Address

func (_m *AbigenContract) Address() common.Address

Address provides a mock function with given fields:

func (*AbigenContract) ParseLog

func (_m *AbigenContract) ParseLog(_a0 types.Log) (generated.AbigenLog, error)

ParseLog provides a mock function with given fields: _a0

type Broadcast

type Broadcast struct {
	mock.Mock
}

Broadcast is an autogenerated mock type for the Broadcast type

func (*Broadcast) DecodedLog

func (_m *Broadcast) DecodedLog() interface{}

DecodedLog provides a mock function with given fields:

func (*Broadcast) EVMChainID

func (_m *Broadcast) EVMChainID() big.Int

EVMChainID provides a mock function with given fields:

func (*Broadcast) JobID

func (_m *Broadcast) JobID() int32

JobID provides a mock function with given fields:

func (*Broadcast) LatestBlockHash

func (_m *Broadcast) LatestBlockHash() common.Hash

LatestBlockHash provides a mock function with given fields:

func (*Broadcast) LatestBlockNumber

func (_m *Broadcast) LatestBlockNumber() uint64

LatestBlockNumber provides a mock function with given fields:

func (*Broadcast) RawLog

func (_m *Broadcast) RawLog() types.Log

RawLog provides a mock function with given fields:

func (*Broadcast) String

func (_m *Broadcast) String() string

String provides a mock function with given fields:

type Broadcaster

type Broadcaster struct {
	mock.Mock
}

Broadcaster is an autogenerated mock type for the Broadcaster type

func (*Broadcaster) AddDependents

func (_m *Broadcaster) AddDependents(n int)

AddDependents provides a mock function with given fields: n

func (*Broadcaster) AwaitDependents

func (_m *Broadcaster) AwaitDependents() <-chan struct{}

AwaitDependents provides a mock function with given fields:

func (*Broadcaster) Close

func (_m *Broadcaster) Close() error

Close provides a mock function with given fields:

func (*Broadcaster) DependentReady

func (_m *Broadcaster) DependentReady()

DependentReady provides a mock function with given fields:

func (*Broadcaster) Healthy

func (_m *Broadcaster) Healthy() error

Healthy provides a mock function with given fields:

func (*Broadcaster) IsConnected

func (_m *Broadcaster) IsConnected() bool

IsConnected provides a mock function with given fields:

func (*Broadcaster) MarkConsumed

func (_m *Broadcaster) MarkConsumed(lb log.Broadcast, qopts ...pg.QOpt) error

MarkConsumed provides a mock function with given fields: lb, qopts

func (*Broadcaster) OnNewLongestChain

func (_m *Broadcaster) OnNewLongestChain(ctx context.Context, head *types.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

func (*Broadcaster) Ready

func (_m *Broadcaster) Ready() error

Ready provides a mock function with given fields:

func (*Broadcaster) Register

func (_m *Broadcaster) Register(listener log.Listener, opts log.ListenerOpts) func()

Register provides a mock function with given fields: listener, opts

func (*Broadcaster) ReplayFromBlock

func (_m *Broadcaster) ReplayFromBlock(number int64, forceBroadcast bool)

ReplayFromBlock provides a mock function with given fields: number, forceBroadcast

func (*Broadcaster) Start

func (_m *Broadcaster) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*Broadcaster) WasAlreadyConsumed

func (_m *Broadcaster) WasAlreadyConsumed(lb log.Broadcast, qopts ...pg.QOpt) (bool, error)

WasAlreadyConsumed provides a mock function with given fields: lb, qopts

type Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func (*Config) BlockBackfillDepth

func (_m *Config) BlockBackfillDepth() uint64

BlockBackfillDepth provides a mock function with given fields:

func (*Config) BlockBackfillSkip

func (_m *Config) BlockBackfillSkip() bool

BlockBackfillSkip provides a mock function with given fields:

func (*Config) EvmFinalityDepth

func (_m *Config) EvmFinalityDepth() uint32

EvmFinalityDepth provides a mock function with given fields:

func (*Config) EvmLogBackfillBatchSize

func (_m *Config) EvmLogBackfillBatchSize() uint32

EvmLogBackfillBatchSize provides a mock function with given fields:

type Listener

type Listener struct {
	mock.Mock
}

Listener is an autogenerated mock type for the Listener type

func (*Listener) HandleLog

func (_m *Listener) HandleLog(b log.Broadcast)

HandleLog provides a mock function with given fields: b

func (*Listener) JobID

func (_m *Listener) JobID() int32

JobID provides a mock function with given fields:

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func (*ORM) CreateBroadcast

func (_m *ORM) CreateBroadcast(blockHash common.Hash, blockNumber uint64, logIndex uint, jobID int32, qopts ...pg.QOpt) error

CreateBroadcast provides a mock function with given fields: blockHash, blockNumber, logIndex, jobID, qopts

func (*ORM) FindBroadcasts

func (_m *ORM) FindBroadcasts(fromBlockNum int64, toBlockNum int64) ([]log.LogBroadcast, error)

FindBroadcasts provides a mock function with given fields: fromBlockNum, toBlockNum

func (*ORM) GetPendingMinBlock

func (_m *ORM) GetPendingMinBlock(qopts ...pg.QOpt) (*int64, error)

GetPendingMinBlock provides a mock function with given fields: qopts

func (*ORM) MarkBroadcastConsumed

func (_m *ORM) MarkBroadcastConsumed(blockHash common.Hash, blockNumber uint64, logIndex uint, jobID int32, qopts ...pg.QOpt) error

MarkBroadcastConsumed provides a mock function with given fields: blockHash, blockNumber, logIndex, jobID, qopts

func (*ORM) MarkBroadcastsUnconsumed added in v1.3.0

func (_m *ORM) MarkBroadcastsUnconsumed(fromBlock int64, qopts ...pg.QOpt) error

MarkBroadcastsUnconsumed provides a mock function with given fields: fromBlock, qopts

func (*ORM) Reinitialize

func (_m *ORM) Reinitialize(qopts ...pg.QOpt) (*int64, error)

Reinitialize provides a mock function with given fields: qopts

func (*ORM) SetPendingMinBlock

func (_m *ORM) SetPendingMinBlock(blockNum *int64, qopts ...pg.QOpt) error

SetPendingMinBlock provides a mock function with given fields: blockNum, qopts

func (*ORM) WasBroadcastConsumed

func (_m *ORM) WasBroadcastConsumed(blockHash common.Hash, logIndex uint, jobID int32, qopts ...pg.QOpt) (bool, error)

WasBroadcastConsumed provides a mock function with given fields: blockHash, logIndex, jobID, qopts

Jump to

Keyboard shortcuts

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