Documentation
¶
Index ¶
- type BlockNotifier
- func (_m *BlockNotifier) EXPECT() *BlockNotifier_Expecter
- func (_m *BlockNotifier) GetCurrentBlockNumber() uint64
- func (_m *BlockNotifier) Initialize(ctx context.Context) error
- func (_m *BlockNotifier) Start(ctx context.Context)
- func (_m *BlockNotifier) String() string
- func (_m *BlockNotifier) Subscribe(id string) <-chan types.EventNewBlock
- type BlockNotifierManager
- func (_m *BlockNotifierManager) EXPECT() *BlockNotifierManager_Expecter
- func (_m *BlockNotifierManager) GetBlockNotifier(ctx context.Context, finality types.BlockNumberFinality) (ethermantypes.BlockNotifier, error)
- func (_m *BlockNotifierManager) GetCurrentBlockNumber(ctx context.Context, finality types.BlockNumberFinality) (uint64, error)
- type BlockNotifierManager_Expecter
- type BlockNotifierManager_GetBlockNotifier_Call
- func (_c *BlockNotifierManager_GetBlockNotifier_Call) Return(_a0 ethermantypes.BlockNotifier, _a1 error) *BlockNotifierManager_GetBlockNotifier_Call
- func (_c *BlockNotifierManager_GetBlockNotifier_Call) Run(run func(ctx context.Context, finality types.BlockNumberFinality)) *BlockNotifierManager_GetBlockNotifier_Call
- func (_c *BlockNotifierManager_GetBlockNotifier_Call) RunAndReturn(...) *BlockNotifierManager_GetBlockNotifier_Call
- type BlockNotifierManager_GetCurrentBlockNumber_Call
- func (_c *BlockNotifierManager_GetCurrentBlockNumber_Call) Return(_a0 uint64, _a1 error) *BlockNotifierManager_GetCurrentBlockNumber_Call
- func (_c *BlockNotifierManager_GetCurrentBlockNumber_Call) Run(run func(ctx context.Context, finality types.BlockNumberFinality)) *BlockNotifierManager_GetCurrentBlockNumber_Call
- func (_c *BlockNotifierManager_GetCurrentBlockNumber_Call) RunAndReturn(run func(context.Context, types.BlockNumberFinality) (uint64, error)) *BlockNotifierManager_GetCurrentBlockNumber_Call
- type BlockNotifier_Expecter
- func (_e *BlockNotifier_Expecter) GetCurrentBlockNumber() *BlockNotifier_GetCurrentBlockNumber_Call
- func (_e *BlockNotifier_Expecter) Initialize(ctx interface{}) *BlockNotifier_Initialize_Call
- func (_e *BlockNotifier_Expecter) Start(ctx interface{}) *BlockNotifier_Start_Call
- func (_e *BlockNotifier_Expecter) String() *BlockNotifier_String_Call
- func (_e *BlockNotifier_Expecter) Subscribe(id interface{}) *BlockNotifier_Subscribe_Call
- type BlockNotifier_GetCurrentBlockNumber_Call
- func (_c *BlockNotifier_GetCurrentBlockNumber_Call) Return(_a0 uint64) *BlockNotifier_GetCurrentBlockNumber_Call
- func (_c *BlockNotifier_GetCurrentBlockNumber_Call) Run(run func()) *BlockNotifier_GetCurrentBlockNumber_Call
- func (_c *BlockNotifier_GetCurrentBlockNumber_Call) RunAndReturn(run func() uint64) *BlockNotifier_GetCurrentBlockNumber_Call
- type BlockNotifier_Initialize_Call
- func (_c *BlockNotifier_Initialize_Call) Return(_a0 error) *BlockNotifier_Initialize_Call
- func (_c *BlockNotifier_Initialize_Call) Run(run func(ctx context.Context)) *BlockNotifier_Initialize_Call
- func (_c *BlockNotifier_Initialize_Call) RunAndReturn(run func(context.Context) error) *BlockNotifier_Initialize_Call
- type BlockNotifier_Start_Call
- type BlockNotifier_String_Call
- type BlockNotifier_Subscribe_Call
- func (_c *BlockNotifier_Subscribe_Call) Return(_a0 <-chan types.EventNewBlock) *BlockNotifier_Subscribe_Call
- func (_c *BlockNotifier_Subscribe_Call) Run(run func(id string)) *BlockNotifier_Subscribe_Call
- func (_c *BlockNotifier_Subscribe_Call) RunAndReturn(run func(string) <-chan types.EventNewBlock) *BlockNotifier_Subscribe_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockNotifier ¶
BlockNotifier is an autogenerated mock type for the BlockNotifier type
func NewBlockNotifier ¶
func NewBlockNotifier(t interface {
mock.TestingT
Cleanup(func())
}) *BlockNotifier
NewBlockNotifier creates a new instance of BlockNotifier. 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 (*BlockNotifier) EXPECT ¶
func (_m *BlockNotifier) EXPECT() *BlockNotifier_Expecter
func (*BlockNotifier) GetCurrentBlockNumber ¶
func (_m *BlockNotifier) GetCurrentBlockNumber() uint64
GetCurrentBlockNumber provides a mock function with no fields
func (*BlockNotifier) Initialize ¶
func (_m *BlockNotifier) Initialize(ctx context.Context) error
Initialize provides a mock function with given fields: ctx
func (*BlockNotifier) Start ¶
func (_m *BlockNotifier) Start(ctx context.Context)
Start provides a mock function with given fields: ctx
func (*BlockNotifier) String ¶
func (_m *BlockNotifier) String() string
String provides a mock function with no fields
func (*BlockNotifier) Subscribe ¶
func (_m *BlockNotifier) Subscribe(id string) <-chan types.EventNewBlock
Subscribe provides a mock function with given fields: id
type BlockNotifierManager ¶
BlockNotifierManager is an autogenerated mock type for the BlockNotifierManager type
func NewBlockNotifierManager ¶
func NewBlockNotifierManager(t interface {
mock.TestingT
Cleanup(func())
}) *BlockNotifierManager
NewBlockNotifierManager creates a new instance of BlockNotifierManager. 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 (*BlockNotifierManager) EXPECT ¶
func (_m *BlockNotifierManager) EXPECT() *BlockNotifierManager_Expecter
func (*BlockNotifierManager) GetBlockNotifier ¶
func (_m *BlockNotifierManager) GetBlockNotifier(ctx context.Context, finality types.BlockNumberFinality) (ethermantypes.BlockNotifier, error)
GetBlockNotifier provides a mock function with given fields: ctx, finality
func (*BlockNotifierManager) GetCurrentBlockNumber ¶
func (_m *BlockNotifierManager) GetCurrentBlockNumber(ctx context.Context, finality types.BlockNumberFinality) (uint64, error)
GetCurrentBlockNumber provides a mock function with given fields: ctx, finality
type BlockNotifierManager_Expecter ¶
type BlockNotifierManager_Expecter struct {
// contains filtered or unexported fields
}
func (*BlockNotifierManager_Expecter) GetBlockNotifier ¶
func (_e *BlockNotifierManager_Expecter) GetBlockNotifier(ctx interface{}, finality interface{}) *BlockNotifierManager_GetBlockNotifier_Call
GetBlockNotifier is a helper method to define mock.On call
- ctx context.Context
- finality types.BlockNumberFinality
func (*BlockNotifierManager_Expecter) GetCurrentBlockNumber ¶
func (_e *BlockNotifierManager_Expecter) GetCurrentBlockNumber(ctx interface{}, finality interface{}) *BlockNotifierManager_GetCurrentBlockNumber_Call
GetCurrentBlockNumber is a helper method to define mock.On call
- ctx context.Context
- finality types.BlockNumberFinality
type BlockNotifierManager_GetBlockNotifier_Call ¶
BlockNotifierManager_GetBlockNotifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockNotifier'
func (*BlockNotifierManager_GetBlockNotifier_Call) Return ¶
func (_c *BlockNotifierManager_GetBlockNotifier_Call) Return(_a0 ethermantypes.BlockNotifier, _a1 error) *BlockNotifierManager_GetBlockNotifier_Call
func (*BlockNotifierManager_GetBlockNotifier_Call) Run ¶
func (_c *BlockNotifierManager_GetBlockNotifier_Call) Run(run func(ctx context.Context, finality types.BlockNumberFinality)) *BlockNotifierManager_GetBlockNotifier_Call
func (*BlockNotifierManager_GetBlockNotifier_Call) RunAndReturn ¶
func (_c *BlockNotifierManager_GetBlockNotifier_Call) RunAndReturn(run func(context.Context, types.BlockNumberFinality) (ethermantypes.BlockNotifier, error)) *BlockNotifierManager_GetBlockNotifier_Call
type BlockNotifierManager_GetCurrentBlockNumber_Call ¶
BlockNotifierManager_GetCurrentBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentBlockNumber'
func (*BlockNotifierManager_GetCurrentBlockNumber_Call) Return ¶
func (_c *BlockNotifierManager_GetCurrentBlockNumber_Call) Return(_a0 uint64, _a1 error) *BlockNotifierManager_GetCurrentBlockNumber_Call
func (*BlockNotifierManager_GetCurrentBlockNumber_Call) Run ¶
func (_c *BlockNotifierManager_GetCurrentBlockNumber_Call) Run(run func(ctx context.Context, finality types.BlockNumberFinality)) *BlockNotifierManager_GetCurrentBlockNumber_Call
func (*BlockNotifierManager_GetCurrentBlockNumber_Call) RunAndReturn ¶
func (_c *BlockNotifierManager_GetCurrentBlockNumber_Call) RunAndReturn(run func(context.Context, types.BlockNumberFinality) (uint64, error)) *BlockNotifierManager_GetCurrentBlockNumber_Call
type BlockNotifier_Expecter ¶
type BlockNotifier_Expecter struct {
// contains filtered or unexported fields
}
func (*BlockNotifier_Expecter) GetCurrentBlockNumber ¶
func (_e *BlockNotifier_Expecter) GetCurrentBlockNumber() *BlockNotifier_GetCurrentBlockNumber_Call
GetCurrentBlockNumber is a helper method to define mock.On call
func (*BlockNotifier_Expecter) Initialize ¶
func (_e *BlockNotifier_Expecter) Initialize(ctx interface{}) *BlockNotifier_Initialize_Call
Initialize is a helper method to define mock.On call
- ctx context.Context
func (*BlockNotifier_Expecter) Start ¶
func (_e *BlockNotifier_Expecter) Start(ctx interface{}) *BlockNotifier_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*BlockNotifier_Expecter) String ¶
func (_e *BlockNotifier_Expecter) String() *BlockNotifier_String_Call
String is a helper method to define mock.On call
func (*BlockNotifier_Expecter) Subscribe ¶
func (_e *BlockNotifier_Expecter) Subscribe(id interface{}) *BlockNotifier_Subscribe_Call
Subscribe is a helper method to define mock.On call
- id string
type BlockNotifier_GetCurrentBlockNumber_Call ¶
BlockNotifier_GetCurrentBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentBlockNumber'
func (*BlockNotifier_GetCurrentBlockNumber_Call) Return ¶
func (_c *BlockNotifier_GetCurrentBlockNumber_Call) Return(_a0 uint64) *BlockNotifier_GetCurrentBlockNumber_Call
func (*BlockNotifier_GetCurrentBlockNumber_Call) Run ¶
func (_c *BlockNotifier_GetCurrentBlockNumber_Call) Run(run func()) *BlockNotifier_GetCurrentBlockNumber_Call
func (*BlockNotifier_GetCurrentBlockNumber_Call) RunAndReturn ¶
func (_c *BlockNotifier_GetCurrentBlockNumber_Call) RunAndReturn(run func() uint64) *BlockNotifier_GetCurrentBlockNumber_Call
type BlockNotifier_Initialize_Call ¶
BlockNotifier_Initialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Initialize'
func (*BlockNotifier_Initialize_Call) Return ¶
func (_c *BlockNotifier_Initialize_Call) Return(_a0 error) *BlockNotifier_Initialize_Call
func (*BlockNotifier_Initialize_Call) Run ¶
func (_c *BlockNotifier_Initialize_Call) Run(run func(ctx context.Context)) *BlockNotifier_Initialize_Call
func (*BlockNotifier_Initialize_Call) RunAndReturn ¶
func (_c *BlockNotifier_Initialize_Call) RunAndReturn(run func(context.Context) error) *BlockNotifier_Initialize_Call
type BlockNotifier_Start_Call ¶
BlockNotifier_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*BlockNotifier_Start_Call) Return ¶
func (_c *BlockNotifier_Start_Call) Return() *BlockNotifier_Start_Call
func (*BlockNotifier_Start_Call) Run ¶
func (_c *BlockNotifier_Start_Call) Run(run func(ctx context.Context)) *BlockNotifier_Start_Call
func (*BlockNotifier_Start_Call) RunAndReturn ¶
func (_c *BlockNotifier_Start_Call) RunAndReturn(run func(context.Context)) *BlockNotifier_Start_Call
type BlockNotifier_String_Call ¶
BlockNotifier_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*BlockNotifier_String_Call) Return ¶
func (_c *BlockNotifier_String_Call) Return(_a0 string) *BlockNotifier_String_Call
func (*BlockNotifier_String_Call) Run ¶
func (_c *BlockNotifier_String_Call) Run(run func()) *BlockNotifier_String_Call
func (*BlockNotifier_String_Call) RunAndReturn ¶
func (_c *BlockNotifier_String_Call) RunAndReturn(run func() string) *BlockNotifier_String_Call
type BlockNotifier_Subscribe_Call ¶
BlockNotifier_Subscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Subscribe'
func (*BlockNotifier_Subscribe_Call) Return ¶
func (_c *BlockNotifier_Subscribe_Call) Return(_a0 <-chan types.EventNewBlock) *BlockNotifier_Subscribe_Call
func (*BlockNotifier_Subscribe_Call) Run ¶
func (_c *BlockNotifier_Subscribe_Call) Run(run func(id string)) *BlockNotifier_Subscribe_Call
func (*BlockNotifier_Subscribe_Call) RunAndReturn ¶
func (_c *BlockNotifier_Subscribe_Call) RunAndReturn(run func(string) <-chan types.EventNewBlock) *BlockNotifier_Subscribe_Call