mocks

package
v0.10.12 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 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 added in v0.10.3

type AbigenContract struct {
	mock.Mock
}

AbigenContract is an autogenerated mock type for the AbigenContract type

func (*AbigenContract) Address added in v0.10.3

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

Address provides a mock function with given fields:

func (*AbigenContract) ParseLog added in v0.10.3

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

ParseLog provides a mock function with given fields: _a0

type Broadcast added in v0.10.3

type Broadcast struct {
	mock.Mock
}

Broadcast is an autogenerated mock type for the Broadcast type

func (*Broadcast) DecodedLog added in v0.10.3

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

DecodedLog provides a mock function with given fields:

func (*Broadcast) JobID added in v0.10.8

func (_m *Broadcast) JobID() log.JobIdSelect

JobID provides a mock function with given fields:

func (*Broadcast) LatestBlockHash added in v0.10.6

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

LatestBlockHash provides a mock function with given fields:

func (*Broadcast) LatestBlockNumber added in v0.10.6

func (_m *Broadcast) LatestBlockNumber() uint64

LatestBlockNumber provides a mock function with given fields:

func (*Broadcast) RawLog added in v0.10.3

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

RawLog provides a mock function with given fields:

func (*Broadcast) String added in v0.10.6

func (_m *Broadcast) String() string

String provides a mock function with given fields:

type Broadcaster added in v0.10.3

type Broadcaster struct {
	mock.Mock
}

Broadcaster is an autogenerated mock type for the Broadcaster type

func (*Broadcaster) AddDependents added in v0.10.3

func (_m *Broadcaster) AddDependents(n int)

AddDependents provides a mock function with given fields: n

func (*Broadcaster) AwaitDependents added in v0.10.3

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

AwaitDependents provides a mock function with given fields:

func (*Broadcaster) BackfillBlockNumber added in v0.10.11

func (_m *Broadcaster) BackfillBlockNumber() null.Int64

BackfillBlockNumber provides a mock function with given fields:

func (*Broadcaster) Close added in v0.10.8

func (_m *Broadcaster) Close() error

Close provides a mock function with given fields:

func (*Broadcaster) Connect added in v0.10.8

func (_m *Broadcaster) Connect(head *models.Head) error

Connect provides a mock function with given fields: head

func (*Broadcaster) DependentReady added in v0.10.3

func (_m *Broadcaster) DependentReady()

DependentReady provides a mock function with given fields:

func (*Broadcaster) Healthy added in v0.10.8

func (_m *Broadcaster) Healthy() error

Healthy provides a mock function with given fields:

func (*Broadcaster) IsConnected added in v0.10.6

func (_m *Broadcaster) IsConnected() bool

IsConnected provides a mock function with given fields:

func (*Broadcaster) MarkConsumed added in v0.10.8

func (_m *Broadcaster) MarkConsumed(db *gorm.DB, lb log.Broadcast) error

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

func (*Broadcaster) OnNewLongestChain added in v0.10.8

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

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

func (*Broadcaster) Ready added in v0.10.8

func (_m *Broadcaster) Ready() error

Ready provides a mock function with given fields:

func (*Broadcaster) Register added in v0.10.3

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

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

func (*Broadcaster) ReplayFromBlock added in v0.10.11

func (_m *Broadcaster) ReplayFromBlock(number int64)

ReplayFromBlock provides a mock function with given fields: number

func (*Broadcaster) Start added in v0.10.3

func (_m *Broadcaster) Start() error

Start provides a mock function with given fields:

func (*Broadcaster) TrackedAddressesCount added in v0.10.6

func (_m *Broadcaster) TrackedAddressesCount() uint32

TrackedAddressesCount provides a mock function with given fields:

func (*Broadcaster) WasAlreadyConsumed added in v0.10.8

func (_m *Broadcaster) WasAlreadyConsumed(db *gorm.DB, lb log.Broadcast) (bool, error)

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

type Listener added in v0.10.3

type Listener struct {
	mock.Mock
}

Listener is an autogenerated mock type for the Listener type

func (*Listener) HandleLog added in v0.10.3

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

HandleLog provides a mock function with given fields: b

func (*Listener) IsV2Job added in v0.10.3

func (_m *Listener) IsV2Job() bool

IsV2Job provides a mock function with given fields:

func (*Listener) JobID added in v0.10.3

func (_m *Listener) JobID() models.JobID

JobID provides a mock function with given fields:

func (*Listener) JobIDV2 added in v0.10.3

func (_m *Listener) JobIDV2() int32

JobIDV2 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) FindConsumedLogs added in v0.10.10

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

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

func (*ORM) MarkBroadcastConsumed

func (_m *ORM) MarkBroadcastConsumed(tx *gorm.DB, blockHash common.Hash, blockNumber uint64, logIndex uint, jobID log.JobIdSelect) error

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

func (*ORM) WasBroadcastConsumed

func (_m *ORM) WasBroadcastConsumed(tx *gorm.DB, blockHash common.Hash, logIndex uint, jobID log.JobIdSelect) (bool, error)

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

Jump to

Keyboard shortcuts

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