Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReorgPorter added in v0.10.0

type ReorgPorter struct {
	mock.Mock
}

ReorgPorter is an autogenerated mock type for the ReorgPorter type

func NewReorgPorter added in v0.10.0

func NewReorgPorter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReorgPorter

NewReorgPorter creates a new instance of ReorgPorter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReorgPorter) EXPECT added in v0.10.0

func (_m *ReorgPorter) EXPECT() *ReorgPorter_Expecter

func (*ReorgPorter) GetBlockNumberInRPC added in v0.10.0

func (_m *ReorgPorter) GetBlockNumberInRPC(ctx context.Context, blockFinality types.BlockNumberFinality) (uint64, error)

GetBlockNumberInRPC provides a mock function with given fields: ctx, blockFinality

func (*ReorgPorter) GetBlockStorageAndRPC added in v0.10.0

func (_m *ReorgPorter) GetBlockStorageAndRPC(ctx context.Context, tx dbtypes.Querier, blockNumber uint64) (*multidownloadertypes.CompareBlockHeaders, error)

GetBlockStorageAndRPC provides a mock function with given fields: ctx, tx, blockNumber

func (*ReorgPorter) GetLastBlockNumberInStorage added in v0.10.0

func (_m *ReorgPorter) GetLastBlockNumberInStorage(tx dbtypes.Querier) (uint64, error)

GetLastBlockNumberInStorage provides a mock function with given fields: tx

func (*ReorgPorter) MoveReorgedBlocks added in v0.10.0

func (_m *ReorgPorter) MoveReorgedBlocks(tx dbtypes.Querier, reorgData multidownloadertypes.ReorgData) (uint64, error)

MoveReorgedBlocks provides a mock function with given fields: tx, reorgData

func (*ReorgPorter) NewTx added in v0.10.0

func (_m *ReorgPorter) NewTx(ctx context.Context) (dbtypes.Txer, error)

NewTx provides a mock function with given fields: ctx

func (*ReorgPorter) TimeNowUnix added in v0.10.0

func (_m *ReorgPorter) TimeNowUnix() uint64

TimeNowUnix provides a mock function with no fields

type ReorgPorter_Expecter added in v0.10.0

type ReorgPorter_Expecter struct {
	// contains filtered or unexported fields
}

func (*ReorgPorter_Expecter) GetBlockNumberInRPC added in v0.10.0

func (_e *ReorgPorter_Expecter) GetBlockNumberInRPC(ctx interface{}, blockFinality interface{}) *ReorgPorter_GetBlockNumberInRPC_Call

GetBlockNumberInRPC is a helper method to define mock.On call

  • ctx context.Context
  • blockFinality types.BlockNumberFinality

func (*ReorgPorter_Expecter) GetBlockStorageAndRPC added in v0.10.0

func (_e *ReorgPorter_Expecter) GetBlockStorageAndRPC(ctx interface{}, tx interface{}, blockNumber interface{}) *ReorgPorter_GetBlockStorageAndRPC_Call

GetBlockStorageAndRPC is a helper method to define mock.On call

  • ctx context.Context
  • tx dbtypes.Querier
  • blockNumber uint64

func (*ReorgPorter_Expecter) GetLastBlockNumberInStorage added in v0.10.0

func (_e *ReorgPorter_Expecter) GetLastBlockNumberInStorage(tx interface{}) *ReorgPorter_GetLastBlockNumberInStorage_Call

GetLastBlockNumberInStorage is a helper method to define mock.On call

  • tx dbtypes.Querier

func (*ReorgPorter_Expecter) MoveReorgedBlocks added in v0.10.0

func (_e *ReorgPorter_Expecter) MoveReorgedBlocks(tx interface{}, reorgData interface{}) *ReorgPorter_MoveReorgedBlocks_Call

MoveReorgedBlocks is a helper method to define mock.On call

  • tx dbtypes.Querier
  • reorgData multidownloadertypes.ReorgData

func (*ReorgPorter_Expecter) NewTx added in v0.10.0

func (_e *ReorgPorter_Expecter) NewTx(ctx interface{}) *ReorgPorter_NewTx_Call

NewTx is a helper method to define mock.On call

  • ctx context.Context

func (*ReorgPorter_Expecter) TimeNowUnix added in v0.10.0

TimeNowUnix is a helper method to define mock.On call

type ReorgPorter_GetBlockNumberInRPC_Call added in v0.10.0

type ReorgPorter_GetBlockNumberInRPC_Call struct {
	*mock.Call
}

ReorgPorter_GetBlockNumberInRPC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockNumberInRPC'

func (*ReorgPorter_GetBlockNumberInRPC_Call) Return added in v0.10.0

func (*ReorgPorter_GetBlockNumberInRPC_Call) Run added in v0.10.0

func (*ReorgPorter_GetBlockNumberInRPC_Call) RunAndReturn added in v0.10.0

type ReorgPorter_GetBlockStorageAndRPC_Call added in v0.10.0

type ReorgPorter_GetBlockStorageAndRPC_Call struct {
	*mock.Call
}

ReorgPorter_GetBlockStorageAndRPC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockStorageAndRPC'

func (*ReorgPorter_GetBlockStorageAndRPC_Call) Return added in v0.10.0

func (*ReorgPorter_GetBlockStorageAndRPC_Call) Run added in v0.10.0

func (*ReorgPorter_GetBlockStorageAndRPC_Call) RunAndReturn added in v0.10.0

type ReorgPorter_GetLastBlockNumberInStorage_Call added in v0.10.0

type ReorgPorter_GetLastBlockNumberInStorage_Call struct {
	*mock.Call
}

ReorgPorter_GetLastBlockNumberInStorage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastBlockNumberInStorage'

func (*ReorgPorter_GetLastBlockNumberInStorage_Call) Return added in v0.10.0

func (*ReorgPorter_GetLastBlockNumberInStorage_Call) Run added in v0.10.0

func (*ReorgPorter_GetLastBlockNumberInStorage_Call) RunAndReturn added in v0.10.0

type ReorgPorter_MoveReorgedBlocks_Call added in v0.10.0

type ReorgPorter_MoveReorgedBlocks_Call struct {
	*mock.Call
}

ReorgPorter_MoveReorgedBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MoveReorgedBlocks'

func (*ReorgPorter_MoveReorgedBlocks_Call) Return added in v0.10.0

func (*ReorgPorter_MoveReorgedBlocks_Call) Run added in v0.10.0

func (*ReorgPorter_MoveReorgedBlocks_Call) RunAndReturn added in v0.10.0

type ReorgPorter_NewTx_Call added in v0.10.0

type ReorgPorter_NewTx_Call struct {
	*mock.Call
}

ReorgPorter_NewTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewTx'

func (*ReorgPorter_NewTx_Call) Return added in v0.10.0

func (*ReorgPorter_NewTx_Call) Run added in v0.10.0

func (*ReorgPorter_NewTx_Call) RunAndReturn added in v0.10.0

type ReorgPorter_TimeNowUnix_Call added in v0.10.0

type ReorgPorter_TimeNowUnix_Call struct {
	*mock.Call
}

ReorgPorter_TimeNowUnix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TimeNowUnix'

func (*ReorgPorter_TimeNowUnix_Call) Return added in v0.10.0

func (*ReorgPorter_TimeNowUnix_Call) Run added in v0.10.0

func (*ReorgPorter_TimeNowUnix_Call) RunAndReturn added in v0.10.0

type ReorgProcessor added in v0.10.0

type ReorgProcessor struct {
	mock.Mock
}

ReorgProcessor is an autogenerated mock type for the ReorgProcessor type

func NewReorgProcessor added in v0.10.0

func NewReorgProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReorgProcessor

NewReorgProcessor creates a new instance of ReorgProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReorgProcessor) EXPECT added in v0.10.0

func (*ReorgProcessor) ProcessReorg added in v0.10.0

func (_m *ReorgProcessor) ProcessReorg(ctx context.Context, detectedReorgError types.DetectedReorgError, finalizedBlockTag aggkittypes.BlockNumberFinality) error

ProcessReorg provides a mock function with given fields: ctx, detectedReorgError, finalizedBlockTag

type ReorgProcessor_Expecter added in v0.10.0

type ReorgProcessor_Expecter struct {
	// contains filtered or unexported fields
}

func (*ReorgProcessor_Expecter) ProcessReorg added in v0.10.0

func (_e *ReorgProcessor_Expecter) ProcessReorg(ctx interface{}, detectedReorgError interface{}, finalizedBlockTag interface{}) *ReorgProcessor_ProcessReorg_Call

ProcessReorg is a helper method to define mock.On call

  • ctx context.Context
  • detectedReorgError types.DetectedReorgError
  • finalizedBlockTag aggkittypes.BlockNumberFinality

type ReorgProcessor_ProcessReorg_Call added in v0.10.0

type ReorgProcessor_ProcessReorg_Call struct {
	*mock.Call
}

ReorgProcessor_ProcessReorg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessReorg'

func (*ReorgProcessor_ProcessReorg_Call) Return added in v0.10.0

func (*ReorgProcessor_ProcessReorg_Call) Run added in v0.10.0

func (*ReorgProcessor_ProcessReorg_Call) RunAndReturn added in v0.10.0

type Storager

type Storager struct {
	mock.Mock
}

Storager is an autogenerated mock type for the Storager type

func NewStorager

func NewStorager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storager

NewStorager creates a new instance of Storager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Storager) EXPECT

func (_m *Storager) EXPECT() *Storager_Expecter

func (*Storager) GetBlockHeaderByNumber

func (_m *Storager) GetBlockHeaderByNumber(tx types.Querier, blockNumber uint64) (*aggkittypes.BlockHeader, multidownloadertypes.FinalizedType, error)

GetBlockHeaderByNumber provides a mock function with given fields: tx, blockNumber

func (*Storager) GetBlockHeadersNotFinalized added in v0.10.0

func (_m *Storager) GetBlockHeadersNotFinalized(tx types.Querier, maxBlock *uint64) (aggkittypes.ListBlockHeaders, error)

GetBlockHeadersNotFinalized provides a mock function with given fields: tx, maxBlock

func (*Storager) GetBlockReorgedReorgID added in v0.10.0

func (_m *Storager) GetBlockReorgedReorgID(tx types.Querier, blockNumber uint64, blockHash common.Hash) (uint64, bool, error)

GetBlockReorgedReorgID provides a mock function with given fields: tx, blockNumber, blockHash

func (*Storager) GetEthLogs

func (_m *Storager) GetEthLogs(tx types.Querier, query multidownloadertypes.LogQuery) ([]coretypes.Log, error)

GetEthLogs provides a mock function with given fields: tx, query

func (*Storager) GetHighestBlockNumber added in v0.10.0

func (_m *Storager) GetHighestBlockNumber(tx types.Querier) (uint64, error)

GetHighestBlockNumber provides a mock function with given fields: tx

func (*Storager) GetRangeBlockHeader added in v0.10.0

GetRangeBlockHeader provides a mock function with given fields: tx, isFinal

func (*Storager) GetReorgedDataByReorgID added in v0.10.0

func (_m *Storager) GetReorgedDataByReorgID(tx types.Querier, reorgID uint64) (*multidownloadertypes.ReorgData, error)

GetReorgedDataByReorgID provides a mock function with given fields: tx, reorgID

func (*Storager) GetSyncedBlockRangePerContract

func (_m *Storager) GetSyncedBlockRangePerContract(tx types.Querier) (multidownloadertypes.SetSyncSegment, error)

GetSyncedBlockRangePerContract provides a mock function with given fields: tx

func (*Storager) GetValue

func (_m *Storager) GetValue(tx types.Querier, owner string, key string) (string, error)

GetValue provides a mock function with given fields: tx, owner, key

func (*Storager) InsertReorgAndMoveReorgedBlocksAndLogs added in v0.10.0

func (_m *Storager) InsertReorgAndMoveReorgedBlocksAndLogs(tx types.Querier, reorgData multidownloadertypes.ReorgData) (uint64, error)

InsertReorgAndMoveReorgedBlocksAndLogs provides a mock function with given fields: tx, reorgData

func (*Storager) InsertValue

func (_m *Storager) InsertValue(tx types.Querier, owner string, key string, value string) error

InsertValue provides a mock function with given fields: tx, owner, key, value

func (*Storager) LogQuery added in v0.10.0

LogQuery provides a mock function with given fields: tx, query

func (*Storager) NewTx

func (_m *Storager) NewTx(ctx context.Context) (types.Txer, error)

NewTx provides a mock function with given fields: ctx

func (*Storager) SaveEthLogsWithHeaders

func (_m *Storager) SaveEthLogsWithHeaders(tx types.Querier, blockHeaders aggkittypes.ListBlockHeaders, logs []coretypes.Log, isFinal bool) error

SaveEthLogsWithHeaders provides a mock function with given fields: tx, blockHeaders, logs, isFinal

func (*Storager) UpdateBlockToFinalized added in v0.10.0

func (_m *Storager) UpdateBlockToFinalized(tx types.Querier, blockNumbers []uint64) error

UpdateBlockToFinalized provides a mock function with given fields: tx, blockNumbers

func (*Storager) UpdateSyncedStatus

func (_m *Storager) UpdateSyncedStatus(tx types.Querier, segments []multidownloadertypes.SyncSegment) error

UpdateSyncedStatus provides a mock function with given fields: tx, segments

func (*Storager) UpdateValue

func (_m *Storager) UpdateValue(tx types.Querier, owner string, key string, value string) error

UpdateValue provides a mock function with given fields: tx, owner, key, value

func (*Storager) UpsertSyncerConfigs

func (_m *Storager) UpsertSyncerConfigs(tx types.Querier, configs []multidownloadertypes.ContractConfig) error

UpsertSyncerConfigs provides a mock function with given fields: tx, configs

type StoragerForReorg added in v0.10.0

type StoragerForReorg struct {
	mock.Mock
}

StoragerForReorg is an autogenerated mock type for the StoragerForReorg type

func NewStoragerForReorg added in v0.10.0

func NewStoragerForReorg(t interface {
	mock.TestingT
	Cleanup(func())
}) *StoragerForReorg

NewStoragerForReorg creates a new instance of StoragerForReorg. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StoragerForReorg) EXPECT added in v0.10.0

func (*StoragerForReorg) GetBlockHeaderByNumber added in v0.10.0

func (_m *StoragerForReorg) GetBlockHeaderByNumber(tx types.Querier, blockNumber uint64) (*aggkittypes.BlockHeader, multidownloadertypes.FinalizedType, error)

GetBlockHeaderByNumber provides a mock function with given fields: tx, blockNumber

func (*StoragerForReorg) InsertReorgAndMoveReorgedBlocksAndLogs added in v0.10.0

func (_m *StoragerForReorg) InsertReorgAndMoveReorgedBlocksAndLogs(tx types.Querier, reorgData multidownloadertypes.ReorgData) (uint64, error)

InsertReorgAndMoveReorgedBlocksAndLogs provides a mock function with given fields: tx, reorgData

type StoragerForReorg_Expecter added in v0.10.0

type StoragerForReorg_Expecter struct {
	// contains filtered or unexported fields
}

func (*StoragerForReorg_Expecter) GetBlockHeaderByNumber added in v0.10.0

func (_e *StoragerForReorg_Expecter) GetBlockHeaderByNumber(tx interface{}, blockNumber interface{}) *StoragerForReorg_GetBlockHeaderByNumber_Call

GetBlockHeaderByNumber is a helper method to define mock.On call

  • tx types.Querier
  • blockNumber uint64

func (*StoragerForReorg_Expecter) InsertReorgAndMoveReorgedBlocksAndLogs added in v0.10.0

func (_e *StoragerForReorg_Expecter) InsertReorgAndMoveReorgedBlocksAndLogs(tx interface{}, reorgData interface{}) *StoragerForReorg_InsertReorgAndMoveReorgedBlocksAndLogs_Call

InsertReorgAndMoveReorgedBlocksAndLogs is a helper method to define mock.On call

  • tx types.Querier
  • reorgData multidownloadertypes.ReorgData

type StoragerForReorg_GetBlockHeaderByNumber_Call added in v0.10.0

type StoragerForReorg_GetBlockHeaderByNumber_Call struct {
	*mock.Call
}

StoragerForReorg_GetBlockHeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockHeaderByNumber'

func (*StoragerForReorg_GetBlockHeaderByNumber_Call) Return added in v0.10.0

func (*StoragerForReorg_GetBlockHeaderByNumber_Call) Run added in v0.10.0

func (*StoragerForReorg_GetBlockHeaderByNumber_Call) RunAndReturn added in v0.10.0

type StoragerForReorg_InsertReorgAndMoveReorgedBlocksAndLogs_Call added in v0.10.0

type StoragerForReorg_InsertReorgAndMoveReorgedBlocksAndLogs_Call struct {
	*mock.Call
}

StoragerForReorg_InsertReorgAndMoveReorgedBlocksAndLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertReorgAndMoveReorgedBlocksAndLogs'

func (*StoragerForReorg_InsertReorgAndMoveReorgedBlocksAndLogs_Call) Return added in v0.10.0

func (*StoragerForReorg_InsertReorgAndMoveReorgedBlocksAndLogs_Call) Run added in v0.10.0

func (*StoragerForReorg_InsertReorgAndMoveReorgedBlocksAndLogs_Call) RunAndReturn added in v0.10.0

type Storager_Expecter

type Storager_Expecter struct {
	// contains filtered or unexported fields
}

func (*Storager_Expecter) GetBlockHeaderByNumber

func (_e *Storager_Expecter) GetBlockHeaderByNumber(tx interface{}, blockNumber interface{}) *Storager_GetBlockHeaderByNumber_Call

GetBlockHeaderByNumber is a helper method to define mock.On call

  • tx types.Querier
  • blockNumber uint64

func (*Storager_Expecter) GetBlockHeadersNotFinalized added in v0.10.0

func (_e *Storager_Expecter) GetBlockHeadersNotFinalized(tx interface{}, maxBlock interface{}) *Storager_GetBlockHeadersNotFinalized_Call

GetBlockHeadersNotFinalized is a helper method to define mock.On call

  • tx types.Querier
  • maxBlock *uint64

func (*Storager_Expecter) GetBlockReorgedReorgID added in v0.10.0

func (_e *Storager_Expecter) GetBlockReorgedReorgID(tx interface{}, blockNumber interface{}, blockHash interface{}) *Storager_GetBlockReorgedReorgID_Call

GetBlockReorgedReorgID is a helper method to define mock.On call

  • tx types.Querier
  • blockNumber uint64
  • blockHash common.Hash

func (*Storager_Expecter) GetEthLogs

func (_e *Storager_Expecter) GetEthLogs(tx interface{}, query interface{}) *Storager_GetEthLogs_Call

GetEthLogs is a helper method to define mock.On call

  • tx types.Querier
  • query multidownloadertypes.LogQuery

func (*Storager_Expecter) GetHighestBlockNumber added in v0.10.0

func (_e *Storager_Expecter) GetHighestBlockNumber(tx interface{}) *Storager_GetHighestBlockNumber_Call

GetHighestBlockNumber is a helper method to define mock.On call

  • tx types.Querier

func (*Storager_Expecter) GetRangeBlockHeader added in v0.10.0

func (_e *Storager_Expecter) GetRangeBlockHeader(tx interface{}, isFinal interface{}) *Storager_GetRangeBlockHeader_Call

GetRangeBlockHeader is a helper method to define mock.On call

  • tx types.Querier
  • isFinal multidownloadertypes.FinalizedType

func (*Storager_Expecter) GetReorgedDataByReorgID added in v0.10.0

func (_e *Storager_Expecter) GetReorgedDataByReorgID(tx interface{}, reorgID interface{}) *Storager_GetReorgedDataByReorgID_Call

GetReorgedDataByReorgID is a helper method to define mock.On call

  • tx types.Querier
  • reorgID uint64

func (*Storager_Expecter) GetSyncedBlockRangePerContract

func (_e *Storager_Expecter) GetSyncedBlockRangePerContract(tx interface{}) *Storager_GetSyncedBlockRangePerContract_Call

GetSyncedBlockRangePerContract is a helper method to define mock.On call

  • tx types.Querier

func (*Storager_Expecter) GetValue

func (_e *Storager_Expecter) GetValue(tx interface{}, owner interface{}, key interface{}) *Storager_GetValue_Call

GetValue is a helper method to define mock.On call

  • tx types.Querier
  • owner string
  • key string

func (*Storager_Expecter) InsertReorgAndMoveReorgedBlocksAndLogs added in v0.10.0

func (_e *Storager_Expecter) InsertReorgAndMoveReorgedBlocksAndLogs(tx interface{}, reorgData interface{}) *Storager_InsertReorgAndMoveReorgedBlocksAndLogs_Call

InsertReorgAndMoveReorgedBlocksAndLogs is a helper method to define mock.On call

  • tx types.Querier
  • reorgData multidownloadertypes.ReorgData

func (*Storager_Expecter) InsertValue

func (_e *Storager_Expecter) InsertValue(tx interface{}, owner interface{}, key interface{}, value interface{}) *Storager_InsertValue_Call

InsertValue is a helper method to define mock.On call

  • tx types.Querier
  • owner string
  • key string
  • value string

func (*Storager_Expecter) LogQuery added in v0.10.0

func (_e *Storager_Expecter) LogQuery(tx interface{}, query interface{}) *Storager_LogQuery_Call

LogQuery is a helper method to define mock.On call

  • tx types.Querier
  • query multidownloadertypes.LogQuery

func (*Storager_Expecter) NewTx

func (_e *Storager_Expecter) NewTx(ctx interface{}) *Storager_NewTx_Call

NewTx is a helper method to define mock.On call

  • ctx context.Context

func (*Storager_Expecter) SaveEthLogsWithHeaders

func (_e *Storager_Expecter) SaveEthLogsWithHeaders(tx interface{}, blockHeaders interface{}, logs interface{}, isFinal interface{}) *Storager_SaveEthLogsWithHeaders_Call

SaveEthLogsWithHeaders is a helper method to define mock.On call

  • tx types.Querier
  • blockHeaders aggkittypes.ListBlockHeaders
  • logs []coretypes.Log
  • isFinal bool

func (*Storager_Expecter) UpdateBlockToFinalized added in v0.10.0

func (_e *Storager_Expecter) UpdateBlockToFinalized(tx interface{}, blockNumbers interface{}) *Storager_UpdateBlockToFinalized_Call

UpdateBlockToFinalized is a helper method to define mock.On call

  • tx types.Querier
  • blockNumbers []uint64

func (*Storager_Expecter) UpdateSyncedStatus

func (_e *Storager_Expecter) UpdateSyncedStatus(tx interface{}, segments interface{}) *Storager_UpdateSyncedStatus_Call

UpdateSyncedStatus is a helper method to define mock.On call

  • tx types.Querier
  • segments []multidownloadertypes.SyncSegment

func (*Storager_Expecter) UpdateValue

func (_e *Storager_Expecter) UpdateValue(tx interface{}, owner interface{}, key interface{}, value interface{}) *Storager_UpdateValue_Call

UpdateValue is a helper method to define mock.On call

  • tx types.Querier
  • owner string
  • key string
  • value string

func (*Storager_Expecter) UpsertSyncerConfigs

func (_e *Storager_Expecter) UpsertSyncerConfigs(tx interface{}, configs interface{}) *Storager_UpsertSyncerConfigs_Call

UpsertSyncerConfigs is a helper method to define mock.On call

  • tx types.Querier
  • configs []multidownloadertypes.ContractConfig

type Storager_GetBlockHeaderByNumber_Call

type Storager_GetBlockHeaderByNumber_Call struct {
	*mock.Call
}

Storager_GetBlockHeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockHeaderByNumber'

func (*Storager_GetBlockHeaderByNumber_Call) Run

type Storager_GetBlockHeadersNotFinalized_Call added in v0.10.0

type Storager_GetBlockHeadersNotFinalized_Call struct {
	*mock.Call
}

Storager_GetBlockHeadersNotFinalized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockHeadersNotFinalized'

func (*Storager_GetBlockHeadersNotFinalized_Call) Return added in v0.10.0

func (*Storager_GetBlockHeadersNotFinalized_Call) Run added in v0.10.0

func (*Storager_GetBlockHeadersNotFinalized_Call) RunAndReturn added in v0.10.0

type Storager_GetBlockReorgedReorgID_Call added in v0.10.0

type Storager_GetBlockReorgedReorgID_Call struct {
	*mock.Call
}

Storager_GetBlockReorgedReorgID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockReorgedReorgID'

func (*Storager_GetBlockReorgedReorgID_Call) Return added in v0.10.0

func (*Storager_GetBlockReorgedReorgID_Call) Run added in v0.10.0

func (*Storager_GetBlockReorgedReorgID_Call) RunAndReturn added in v0.10.0

type Storager_GetEthLogs_Call

type Storager_GetEthLogs_Call struct {
	*mock.Call
}

Storager_GetEthLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEthLogs'

func (*Storager_GetEthLogs_Call) Return

func (*Storager_GetEthLogs_Call) Run

func (*Storager_GetEthLogs_Call) RunAndReturn

type Storager_GetHighestBlockNumber_Call added in v0.10.0

type Storager_GetHighestBlockNumber_Call struct {
	*mock.Call
}

Storager_GetHighestBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHighestBlockNumber'

func (*Storager_GetHighestBlockNumber_Call) Return added in v0.10.0

func (*Storager_GetHighestBlockNumber_Call) Run added in v0.10.0

func (*Storager_GetHighestBlockNumber_Call) RunAndReturn added in v0.10.0

type Storager_GetRangeBlockHeader_Call added in v0.10.0

type Storager_GetRangeBlockHeader_Call struct {
	*mock.Call
}

Storager_GetRangeBlockHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRangeBlockHeader'

func (*Storager_GetRangeBlockHeader_Call) Return added in v0.10.0

func (*Storager_GetRangeBlockHeader_Call) Run added in v0.10.0

func (*Storager_GetRangeBlockHeader_Call) RunAndReturn added in v0.10.0

type Storager_GetReorgedDataByReorgID_Call added in v0.10.0

type Storager_GetReorgedDataByReorgID_Call struct {
	*mock.Call
}

Storager_GetReorgedDataByReorgID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReorgedDataByReorgID'

func (*Storager_GetReorgedDataByReorgID_Call) Return added in v0.10.0

func (*Storager_GetReorgedDataByReorgID_Call) Run added in v0.10.0

func (*Storager_GetReorgedDataByReorgID_Call) RunAndReturn added in v0.10.0

type Storager_GetSyncedBlockRangePerContract_Call

type Storager_GetSyncedBlockRangePerContract_Call struct {
	*mock.Call
}

Storager_GetSyncedBlockRangePerContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSyncedBlockRangePerContract'

func (*Storager_GetSyncedBlockRangePerContract_Call) Return

func (*Storager_GetSyncedBlockRangePerContract_Call) Run

func (*Storager_GetSyncedBlockRangePerContract_Call) RunAndReturn

type Storager_GetValue_Call

type Storager_GetValue_Call struct {
	*mock.Call
}

Storager_GetValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetValue'

func (*Storager_GetValue_Call) Return

func (*Storager_GetValue_Call) Run

func (_c *Storager_GetValue_Call) Run(run func(tx types.Querier, owner string, key string)) *Storager_GetValue_Call

func (*Storager_GetValue_Call) RunAndReturn

type Storager_InsertReorgAndMoveReorgedBlocksAndLogs_Call added in v0.10.0

type Storager_InsertReorgAndMoveReorgedBlocksAndLogs_Call struct {
	*mock.Call
}

Storager_InsertReorgAndMoveReorgedBlocksAndLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertReorgAndMoveReorgedBlocksAndLogs'

func (*Storager_InsertReorgAndMoveReorgedBlocksAndLogs_Call) Return added in v0.10.0

func (*Storager_InsertReorgAndMoveReorgedBlocksAndLogs_Call) Run added in v0.10.0

func (*Storager_InsertReorgAndMoveReorgedBlocksAndLogs_Call) RunAndReturn added in v0.10.0

type Storager_InsertValue_Call

type Storager_InsertValue_Call struct {
	*mock.Call
}

Storager_InsertValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertValue'

func (*Storager_InsertValue_Call) Return

func (*Storager_InsertValue_Call) Run

func (_c *Storager_InsertValue_Call) Run(run func(tx types.Querier, owner string, key string, value string)) *Storager_InsertValue_Call

func (*Storager_InsertValue_Call) RunAndReturn

type Storager_LogQuery_Call added in v0.10.0

type Storager_LogQuery_Call struct {
	*mock.Call
}

Storager_LogQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogQuery'

func (*Storager_LogQuery_Call) Return added in v0.10.0

func (*Storager_LogQuery_Call) Run added in v0.10.0

func (*Storager_LogQuery_Call) RunAndReturn added in v0.10.0

type Storager_NewTx_Call

type Storager_NewTx_Call struct {
	*mock.Call
}

Storager_NewTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewTx'

func (*Storager_NewTx_Call) Return

func (_c *Storager_NewTx_Call) Return(_a0 types.Txer, _a1 error) *Storager_NewTx_Call

func (*Storager_NewTx_Call) Run

func (_c *Storager_NewTx_Call) Run(run func(ctx context.Context)) *Storager_NewTx_Call

func (*Storager_NewTx_Call) RunAndReturn

func (_c *Storager_NewTx_Call) RunAndReturn(run func(context.Context) (types.Txer, error)) *Storager_NewTx_Call

type Storager_SaveEthLogsWithHeaders_Call

type Storager_SaveEthLogsWithHeaders_Call struct {
	*mock.Call
}

Storager_SaveEthLogsWithHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveEthLogsWithHeaders'

func (*Storager_SaveEthLogsWithHeaders_Call) Return

func (*Storager_SaveEthLogsWithHeaders_Call) Run

func (*Storager_SaveEthLogsWithHeaders_Call) RunAndReturn

type Storager_UpdateBlockToFinalized_Call added in v0.10.0

type Storager_UpdateBlockToFinalized_Call struct {
	*mock.Call
}

Storager_UpdateBlockToFinalized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateBlockToFinalized'

func (*Storager_UpdateBlockToFinalized_Call) Return added in v0.10.0

func (*Storager_UpdateBlockToFinalized_Call) Run added in v0.10.0

func (*Storager_UpdateBlockToFinalized_Call) RunAndReturn added in v0.10.0

type Storager_UpdateSyncedStatus_Call

type Storager_UpdateSyncedStatus_Call struct {
	*mock.Call
}

Storager_UpdateSyncedStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSyncedStatus'

func (*Storager_UpdateSyncedStatus_Call) Return

func (*Storager_UpdateSyncedStatus_Call) Run

func (*Storager_UpdateSyncedStatus_Call) RunAndReturn

type Storager_UpdateValue_Call

type Storager_UpdateValue_Call struct {
	*mock.Call
}

Storager_UpdateValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateValue'

func (*Storager_UpdateValue_Call) Return

func (*Storager_UpdateValue_Call) Run

func (_c *Storager_UpdateValue_Call) Run(run func(tx types.Querier, owner string, key string, value string)) *Storager_UpdateValue_Call

func (*Storager_UpdateValue_Call) RunAndReturn

type Storager_UpsertSyncerConfigs_Call

type Storager_UpsertSyncerConfigs_Call struct {
	*mock.Call
}

Storager_UpsertSyncerConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertSyncerConfigs'

func (*Storager_UpsertSyncerConfigs_Call) Return

func (*Storager_UpsertSyncerConfigs_Call) Run

func (*Storager_UpsertSyncerConfigs_Call) RunAndReturn

Jump to

Keyboard shortcuts

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