Documentation
¶
Index ¶
- type MockIBlockTracker
- type MockIBlockTracker_Expecter
- type MockIBlockTracker_GetLatestBlock_Call
- func (_c *MockIBlockTracker_GetLatestBlock_Call) Return(_a0 uint64, _a1 []byte) *MockIBlockTracker_GetLatestBlock_Call
- func (_c *MockIBlockTracker_GetLatestBlock_Call) Run(run func()) *MockIBlockTracker_GetLatestBlock_Call
- func (_c *MockIBlockTracker_GetLatestBlock_Call) RunAndReturn(run func() (uint64, []byte)) *MockIBlockTracker_GetLatestBlock_Call
- type MockIBlockTracker_UpdateLatestBlock_Call
- func (_c *MockIBlockTracker_UpdateLatestBlock_Call) Return(_a0 error) *MockIBlockTracker_UpdateLatestBlock_Call
- func (_c *MockIBlockTracker_UpdateLatestBlock_Call) Run(run func(ctx context.Context, block uint64, hash []byte)) *MockIBlockTracker_UpdateLatestBlock_Call
- func (_c *MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn(run func(context.Context, uint64, []byte) error) *MockIBlockTracker_UpdateLatestBlock_Call
- type MockIContract
- func (_m *MockIContract) Address() common.Address
- func (_m *MockIContract) EXPECT() *MockIContract_Expecter
- func (_m *MockIContract) GetLatestBlock() (uint64, []byte)
- func (_m *MockIContract) HandleLog(ctx context.Context, event types.Log) retryerrors.RetryableError
- func (_m *MockIContract) Logger() *zap.Logger
- func (_m *MockIContract) StoreLog(ctx context.Context, event types.Log) retryerrors.RetryableError
- func (_m *MockIContract) Topics() []common.Hash
- func (_m *MockIContract) UpdateLatestBlock(ctx context.Context, block uint64, hash []byte) error
- type MockIContract_Address_Call
- type MockIContract_Expecter
- func (_e *MockIContract_Expecter) Address() *MockIContract_Address_Call
- func (_e *MockIContract_Expecter) GetLatestBlock() *MockIContract_GetLatestBlock_Call
- func (_e *MockIContract_Expecter) HandleLog(ctx interface{}, event interface{}) *MockIContract_HandleLog_Call
- func (_e *MockIContract_Expecter) Logger() *MockIContract_Logger_Call
- func (_e *MockIContract_Expecter) StoreLog(ctx interface{}, event interface{}) *MockIContract_StoreLog_Call
- func (_e *MockIContract_Expecter) Topics() *MockIContract_Topics_Call
- func (_e *MockIContract_Expecter) UpdateLatestBlock(ctx interface{}, block interface{}, hash interface{}) *MockIContract_UpdateLatestBlock_Call
- type MockIContract_GetLatestBlock_Call
- func (_c *MockIContract_GetLatestBlock_Call) Return(_a0 uint64, _a1 []byte) *MockIContract_GetLatestBlock_Call
- func (_c *MockIContract_GetLatestBlock_Call) Run(run func()) *MockIContract_GetLatestBlock_Call
- func (_c *MockIContract_GetLatestBlock_Call) RunAndReturn(run func() (uint64, []byte)) *MockIContract_GetLatestBlock_Call
- type MockIContract_HandleLog_Call
- func (_c *MockIContract_HandleLog_Call) Return(_a0 retryerrors.RetryableError) *MockIContract_HandleLog_Call
- func (_c *MockIContract_HandleLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockIContract_HandleLog_Call
- func (_c *MockIContract_HandleLog_Call) RunAndReturn(run func(context.Context, types.Log) retryerrors.RetryableError) *MockIContract_HandleLog_Call
- type MockIContract_Logger_Call
- type MockIContract_StoreLog_Call
- func (_c *MockIContract_StoreLog_Call) Return(_a0 retryerrors.RetryableError) *MockIContract_StoreLog_Call
- func (_c *MockIContract_StoreLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockIContract_StoreLog_Call
- func (_c *MockIContract_StoreLog_Call) RunAndReturn(run func(context.Context, types.Log) retryerrors.RetryableError) *MockIContract_StoreLog_Call
- type MockIContract_Topics_Call
- type MockIContract_UpdateLatestBlock_Call
- func (_c *MockIContract_UpdateLatestBlock_Call) Return(_a0 error) *MockIContract_UpdateLatestBlock_Call
- func (_c *MockIContract_UpdateLatestBlock_Call) Run(run func(ctx context.Context, block uint64, hash []byte)) *MockIContract_UpdateLatestBlock_Call
- func (_c *MockIContract_UpdateLatestBlock_Call) RunAndReturn(run func(context.Context, uint64, []byte) error) *MockIContract_UpdateLatestBlock_Call
- type MockILogStorer
- type MockILogStorer_Expecter
- type MockILogStorer_StoreLog_Call
- func (_c *MockILogStorer_StoreLog_Call) Return(_a0 retryerrors.RetryableError) *MockILogStorer_StoreLog_Call
- func (_c *MockILogStorer_StoreLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockILogStorer_StoreLog_Call
- func (_c *MockILogStorer_StoreLog_Call) RunAndReturn(run func(context.Context, types.Log) retryerrors.RetryableError) *MockILogStorer_StoreLog_Call
- type MockIReorgHandler
- type MockIReorgHandler_Expecter
- type MockIReorgHandler_HandleLog_Call
- func (_c *MockIReorgHandler_HandleLog_Call) Return(_a0 retryerrors.RetryableError) *MockIReorgHandler_HandleLog_Call
- func (_c *MockIReorgHandler_HandleLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockIReorgHandler_HandleLog_Call
- func (_c *MockIReorgHandler_HandleLog_Call) RunAndReturn(run func(context.Context, types.Log) retryerrors.RetryableError) *MockIReorgHandler_HandleLog_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIBlockTracker ¶
MockIBlockTracker is an autogenerated mock type for the IBlockTracker type
func NewMockIBlockTracker ¶
func NewMockIBlockTracker(t interface {
mock.TestingT
Cleanup(func())
}) *MockIBlockTracker
NewMockIBlockTracker creates a new instance of MockIBlockTracker. 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 (*MockIBlockTracker) EXPECT ¶
func (_m *MockIBlockTracker) EXPECT() *MockIBlockTracker_Expecter
func (*MockIBlockTracker) GetLatestBlock ¶
func (_m *MockIBlockTracker) GetLatestBlock() (uint64, []byte)
GetLatestBlock provides a mock function with no fields
func (*MockIBlockTracker) UpdateLatestBlock ¶
func (_m *MockIBlockTracker) UpdateLatestBlock(ctx context.Context, block uint64, hash []byte) error
UpdateLatestBlock provides a mock function with given fields: ctx, block, hash
type MockIBlockTracker_Expecter ¶
type MockIBlockTracker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIBlockTracker_Expecter) GetLatestBlock ¶
func (_e *MockIBlockTracker_Expecter) GetLatestBlock() *MockIBlockTracker_GetLatestBlock_Call
GetLatestBlock is a helper method to define mock.On call
func (*MockIBlockTracker_Expecter) UpdateLatestBlock ¶
func (_e *MockIBlockTracker_Expecter) UpdateLatestBlock(ctx interface{}, block interface{}, hash interface{}) *MockIBlockTracker_UpdateLatestBlock_Call
UpdateLatestBlock is a helper method to define mock.On call
- ctx context.Context
- block uint64
- hash []byte
type MockIBlockTracker_GetLatestBlock_Call ¶
MockIBlockTracker_GetLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlock'
func (*MockIBlockTracker_GetLatestBlock_Call) Return ¶
func (_c *MockIBlockTracker_GetLatestBlock_Call) Return(_a0 uint64, _a1 []byte) *MockIBlockTracker_GetLatestBlock_Call
func (*MockIBlockTracker_GetLatestBlock_Call) Run ¶
func (_c *MockIBlockTracker_GetLatestBlock_Call) Run(run func()) *MockIBlockTracker_GetLatestBlock_Call
func (*MockIBlockTracker_GetLatestBlock_Call) RunAndReturn ¶
func (_c *MockIBlockTracker_GetLatestBlock_Call) RunAndReturn(run func() (uint64, []byte)) *MockIBlockTracker_GetLatestBlock_Call
type MockIBlockTracker_UpdateLatestBlock_Call ¶
MockIBlockTracker_UpdateLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLatestBlock'
func (*MockIBlockTracker_UpdateLatestBlock_Call) Return ¶
func (_c *MockIBlockTracker_UpdateLatestBlock_Call) Return(_a0 error) *MockIBlockTracker_UpdateLatestBlock_Call
func (*MockIBlockTracker_UpdateLatestBlock_Call) Run ¶
func (_c *MockIBlockTracker_UpdateLatestBlock_Call) Run(run func(ctx context.Context, block uint64, hash []byte)) *MockIBlockTracker_UpdateLatestBlock_Call
func (*MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn ¶
func (_c *MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn(run func(context.Context, uint64, []byte) error) *MockIBlockTracker_UpdateLatestBlock_Call
type MockIContract ¶
MockIContract is an autogenerated mock type for the IContract type
func NewMockIContract ¶
func NewMockIContract(t interface {
mock.TestingT
Cleanup(func())
}) *MockIContract
NewMockIContract creates a new instance of MockIContract. 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 (*MockIContract) Address ¶
func (_m *MockIContract) Address() common.Address
Address provides a mock function with no fields
func (*MockIContract) EXPECT ¶
func (_m *MockIContract) EXPECT() *MockIContract_Expecter
func (*MockIContract) GetLatestBlock ¶
func (_m *MockIContract) GetLatestBlock() (uint64, []byte)
GetLatestBlock provides a mock function with no fields
func (*MockIContract) HandleLog ¶
func (_m *MockIContract) HandleLog(ctx context.Context, event types.Log) retryerrors.RetryableError
HandleLog provides a mock function with given fields: ctx, event
func (*MockIContract) Logger ¶
func (_m *MockIContract) Logger() *zap.Logger
Logger provides a mock function with no fields
func (*MockIContract) StoreLog ¶
func (_m *MockIContract) StoreLog(ctx context.Context, event types.Log) retryerrors.RetryableError
StoreLog provides a mock function with given fields: ctx, event
func (*MockIContract) Topics ¶
func (_m *MockIContract) Topics() []common.Hash
Topics provides a mock function with no fields
func (*MockIContract) UpdateLatestBlock ¶
UpdateLatestBlock provides a mock function with given fields: ctx, block, hash
type MockIContract_Address_Call ¶
MockIContract_Address_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Address'
func (*MockIContract_Address_Call) Return ¶
func (_c *MockIContract_Address_Call) Return(_a0 common.Address) *MockIContract_Address_Call
func (*MockIContract_Address_Call) Run ¶
func (_c *MockIContract_Address_Call) Run(run func()) *MockIContract_Address_Call
func (*MockIContract_Address_Call) RunAndReturn ¶
func (_c *MockIContract_Address_Call) RunAndReturn(run func() common.Address) *MockIContract_Address_Call
type MockIContract_Expecter ¶
type MockIContract_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIContract_Expecter) Address ¶
func (_e *MockIContract_Expecter) Address() *MockIContract_Address_Call
Address is a helper method to define mock.On call
func (*MockIContract_Expecter) GetLatestBlock ¶
func (_e *MockIContract_Expecter) GetLatestBlock() *MockIContract_GetLatestBlock_Call
GetLatestBlock is a helper method to define mock.On call
func (*MockIContract_Expecter) HandleLog ¶
func (_e *MockIContract_Expecter) HandleLog(ctx interface{}, event interface{}) *MockIContract_HandleLog_Call
HandleLog is a helper method to define mock.On call
- ctx context.Context
- event types.Log
func (*MockIContract_Expecter) Logger ¶
func (_e *MockIContract_Expecter) Logger() *MockIContract_Logger_Call
Logger is a helper method to define mock.On call
func (*MockIContract_Expecter) StoreLog ¶
func (_e *MockIContract_Expecter) StoreLog(ctx interface{}, event interface{}) *MockIContract_StoreLog_Call
StoreLog is a helper method to define mock.On call
- ctx context.Context
- event types.Log
func (*MockIContract_Expecter) Topics ¶
func (_e *MockIContract_Expecter) Topics() *MockIContract_Topics_Call
Topics is a helper method to define mock.On call
func (*MockIContract_Expecter) UpdateLatestBlock ¶
func (_e *MockIContract_Expecter) UpdateLatestBlock(ctx interface{}, block interface{}, hash interface{}) *MockIContract_UpdateLatestBlock_Call
UpdateLatestBlock is a helper method to define mock.On call
- ctx context.Context
- block uint64
- hash []byte
type MockIContract_GetLatestBlock_Call ¶
MockIContract_GetLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlock'
func (*MockIContract_GetLatestBlock_Call) Return ¶
func (_c *MockIContract_GetLatestBlock_Call) Return(_a0 uint64, _a1 []byte) *MockIContract_GetLatestBlock_Call
func (*MockIContract_GetLatestBlock_Call) Run ¶
func (_c *MockIContract_GetLatestBlock_Call) Run(run func()) *MockIContract_GetLatestBlock_Call
func (*MockIContract_GetLatestBlock_Call) RunAndReturn ¶
func (_c *MockIContract_GetLatestBlock_Call) RunAndReturn(run func() (uint64, []byte)) *MockIContract_GetLatestBlock_Call
type MockIContract_HandleLog_Call ¶
MockIContract_HandleLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleLog'
func (*MockIContract_HandleLog_Call) Return ¶
func (_c *MockIContract_HandleLog_Call) Return(_a0 retryerrors.RetryableError) *MockIContract_HandleLog_Call
func (*MockIContract_HandleLog_Call) Run ¶
func (_c *MockIContract_HandleLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockIContract_HandleLog_Call
func (*MockIContract_HandleLog_Call) RunAndReturn ¶
func (_c *MockIContract_HandleLog_Call) RunAndReturn(run func(context.Context, types.Log) retryerrors.RetryableError) *MockIContract_HandleLog_Call
type MockIContract_Logger_Call ¶
MockIContract_Logger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logger'
func (*MockIContract_Logger_Call) Return ¶
func (_c *MockIContract_Logger_Call) Return(_a0 *zap.Logger) *MockIContract_Logger_Call
func (*MockIContract_Logger_Call) Run ¶
func (_c *MockIContract_Logger_Call) Run(run func()) *MockIContract_Logger_Call
func (*MockIContract_Logger_Call) RunAndReturn ¶
func (_c *MockIContract_Logger_Call) RunAndReturn(run func() *zap.Logger) *MockIContract_Logger_Call
type MockIContract_StoreLog_Call ¶
MockIContract_StoreLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreLog'
func (*MockIContract_StoreLog_Call) Return ¶
func (_c *MockIContract_StoreLog_Call) Return(_a0 retryerrors.RetryableError) *MockIContract_StoreLog_Call
func (*MockIContract_StoreLog_Call) Run ¶
func (_c *MockIContract_StoreLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockIContract_StoreLog_Call
func (*MockIContract_StoreLog_Call) RunAndReturn ¶
func (_c *MockIContract_StoreLog_Call) RunAndReturn(run func(context.Context, types.Log) retryerrors.RetryableError) *MockIContract_StoreLog_Call
type MockIContract_Topics_Call ¶
MockIContract_Topics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Topics'
func (*MockIContract_Topics_Call) Return ¶
func (_c *MockIContract_Topics_Call) Return(_a0 []common.Hash) *MockIContract_Topics_Call
func (*MockIContract_Topics_Call) Run ¶
func (_c *MockIContract_Topics_Call) Run(run func()) *MockIContract_Topics_Call
func (*MockIContract_Topics_Call) RunAndReturn ¶
func (_c *MockIContract_Topics_Call) RunAndReturn(run func() []common.Hash) *MockIContract_Topics_Call
type MockIContract_UpdateLatestBlock_Call ¶
MockIContract_UpdateLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLatestBlock'
func (*MockIContract_UpdateLatestBlock_Call) Return ¶
func (_c *MockIContract_UpdateLatestBlock_Call) Return(_a0 error) *MockIContract_UpdateLatestBlock_Call
func (*MockIContract_UpdateLatestBlock_Call) Run ¶
func (_c *MockIContract_UpdateLatestBlock_Call) Run(run func(ctx context.Context, block uint64, hash []byte)) *MockIContract_UpdateLatestBlock_Call
func (*MockIContract_UpdateLatestBlock_Call) RunAndReturn ¶
func (_c *MockIContract_UpdateLatestBlock_Call) RunAndReturn(run func(context.Context, uint64, []byte) error) *MockIContract_UpdateLatestBlock_Call
type MockILogStorer ¶
MockILogStorer is an autogenerated mock type for the ILogStorer type
func NewMockILogStorer ¶
func NewMockILogStorer(t interface {
mock.TestingT
Cleanup(func())
}) *MockILogStorer
NewMockILogStorer creates a new instance of MockILogStorer. 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 (*MockILogStorer) EXPECT ¶
func (_m *MockILogStorer) EXPECT() *MockILogStorer_Expecter
func (*MockILogStorer) StoreLog ¶
func (_m *MockILogStorer) StoreLog(ctx context.Context, event types.Log) retryerrors.RetryableError
StoreLog provides a mock function with given fields: ctx, event
type MockILogStorer_Expecter ¶
type MockILogStorer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockILogStorer_Expecter) StoreLog ¶
func (_e *MockILogStorer_Expecter) StoreLog(ctx interface{}, event interface{}) *MockILogStorer_StoreLog_Call
StoreLog is a helper method to define mock.On call
- ctx context.Context
- event types.Log
type MockILogStorer_StoreLog_Call ¶
MockILogStorer_StoreLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreLog'
func (*MockILogStorer_StoreLog_Call) Return ¶
func (_c *MockILogStorer_StoreLog_Call) Return(_a0 retryerrors.RetryableError) *MockILogStorer_StoreLog_Call
func (*MockILogStorer_StoreLog_Call) Run ¶
func (_c *MockILogStorer_StoreLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockILogStorer_StoreLog_Call
func (*MockILogStorer_StoreLog_Call) RunAndReturn ¶
func (_c *MockILogStorer_StoreLog_Call) RunAndReturn(run func(context.Context, types.Log) retryerrors.RetryableError) *MockILogStorer_StoreLog_Call
type MockIReorgHandler ¶
MockIReorgHandler is an autogenerated mock type for the IReorgHandler type
func NewMockIReorgHandler ¶
func NewMockIReorgHandler(t interface {
mock.TestingT
Cleanup(func())
}) *MockIReorgHandler
NewMockIReorgHandler creates a new instance of MockIReorgHandler. 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 (*MockIReorgHandler) EXPECT ¶
func (_m *MockIReorgHandler) EXPECT() *MockIReorgHandler_Expecter
func (*MockIReorgHandler) HandleLog ¶
func (_m *MockIReorgHandler) HandleLog(ctx context.Context, event types.Log) retryerrors.RetryableError
HandleLog provides a mock function with given fields: ctx, event
type MockIReorgHandler_Expecter ¶
type MockIReorgHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIReorgHandler_Expecter) HandleLog ¶
func (_e *MockIReorgHandler_Expecter) HandleLog(ctx interface{}, event interface{}) *MockIReorgHandler_HandleLog_Call
HandleLog is a helper method to define mock.On call
- ctx context.Context
- event types.Log
type MockIReorgHandler_HandleLog_Call ¶
MockIReorgHandler_HandleLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleLog'
func (*MockIReorgHandler_HandleLog_Call) Return ¶
func (_c *MockIReorgHandler_HandleLog_Call) Return(_a0 retryerrors.RetryableError) *MockIReorgHandler_HandleLog_Call
func (*MockIReorgHandler_HandleLog_Call) Run ¶
func (_c *MockIReorgHandler_HandleLog_Call) Run(run func(ctx context.Context, event types.Log)) *MockIReorgHandler_HandleLog_Call
func (*MockIReorgHandler_HandleLog_Call) RunAndReturn ¶
func (_c *MockIReorgHandler_HandleLog_Call) RunAndReturn(run func(context.Context, types.Log) retryerrors.RetryableError) *MockIReorgHandler_HandleLog_Call