Documentation
¶
Index ¶
- type EpochNotifier
- func (_m *EpochNotifier) EXPECT() *EpochNotifier_Expecter
- func (_m *EpochNotifier) ForcePublishEpochEvent()
- func (_m *EpochNotifier) GetEpochStatus() types.EpochStatus
- func (_m *EpochNotifier) Start(ctx context.Context)
- func (_m *EpochNotifier) String() string
- func (_m *EpochNotifier) Subscribe(id string) <-chan types.EpochEvent
- type EpochNotifier_Expecter
- func (_e *EpochNotifier_Expecter) ForcePublishEpochEvent() *EpochNotifier_ForcePublishEpochEvent_Call
- func (_e *EpochNotifier_Expecter) GetEpochStatus() *EpochNotifier_GetEpochStatus_Call
- func (_e *EpochNotifier_Expecter) Start(ctx interface{}) *EpochNotifier_Start_Call
- func (_e *EpochNotifier_Expecter) String() *EpochNotifier_String_Call
- func (_e *EpochNotifier_Expecter) Subscribe(id interface{}) *EpochNotifier_Subscribe_Call
- type EpochNotifier_ForcePublishEpochEvent_Call
- func (_c *EpochNotifier_ForcePublishEpochEvent_Call) Return() *EpochNotifier_ForcePublishEpochEvent_Call
- func (_c *EpochNotifier_ForcePublishEpochEvent_Call) Run(run func()) *EpochNotifier_ForcePublishEpochEvent_Call
- func (_c *EpochNotifier_ForcePublishEpochEvent_Call) RunAndReturn(run func()) *EpochNotifier_ForcePublishEpochEvent_Call
- type EpochNotifier_GetEpochStatus_Call
- func (_c *EpochNotifier_GetEpochStatus_Call) Return(_a0 types.EpochStatus) *EpochNotifier_GetEpochStatus_Call
- func (_c *EpochNotifier_GetEpochStatus_Call) Run(run func()) *EpochNotifier_GetEpochStatus_Call
- func (_c *EpochNotifier_GetEpochStatus_Call) RunAndReturn(run func() types.EpochStatus) *EpochNotifier_GetEpochStatus_Call
- type EpochNotifier_Start_Call
- type EpochNotifier_String_Call
- type EpochNotifier_Subscribe_Call
- func (_c *EpochNotifier_Subscribe_Call) Return(_a0 <-chan types.EpochEvent) *EpochNotifier_Subscribe_Call
- func (_c *EpochNotifier_Subscribe_Call) Run(run func(id string)) *EpochNotifier_Subscribe_Call
- func (_c *EpochNotifier_Subscribe_Call) RunAndReturn(run func(string) <-chan types.EpochEvent) *EpochNotifier_Subscribe_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EpochNotifier ¶
EpochNotifier is an autogenerated mock type for the EpochNotifier type
func NewEpochNotifier ¶
func NewEpochNotifier(t interface {
mock.TestingT
Cleanup(func())
}) *EpochNotifier
NewEpochNotifier creates a new instance of EpochNotifier. 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 (*EpochNotifier) EXPECT ¶
func (_m *EpochNotifier) EXPECT() *EpochNotifier_Expecter
func (*EpochNotifier) ForcePublishEpochEvent ¶
func (_m *EpochNotifier) ForcePublishEpochEvent()
ForcePublishEpochEvent provides a mock function with no fields
func (*EpochNotifier) GetEpochStatus ¶
func (_m *EpochNotifier) GetEpochStatus() types.EpochStatus
GetEpochStatus provides a mock function with no fields
func (*EpochNotifier) Start ¶
func (_m *EpochNotifier) Start(ctx context.Context)
Start provides a mock function with given fields: ctx
func (*EpochNotifier) String ¶
func (_m *EpochNotifier) String() string
String provides a mock function with no fields
func (*EpochNotifier) Subscribe ¶
func (_m *EpochNotifier) Subscribe(id string) <-chan types.EpochEvent
Subscribe provides a mock function with given fields: id
type EpochNotifier_Expecter ¶
type EpochNotifier_Expecter struct {
// contains filtered or unexported fields
}
func (*EpochNotifier_Expecter) ForcePublishEpochEvent ¶
func (_e *EpochNotifier_Expecter) ForcePublishEpochEvent() *EpochNotifier_ForcePublishEpochEvent_Call
ForcePublishEpochEvent is a helper method to define mock.On call
func (*EpochNotifier_Expecter) GetEpochStatus ¶
func (_e *EpochNotifier_Expecter) GetEpochStatus() *EpochNotifier_GetEpochStatus_Call
GetEpochStatus is a helper method to define mock.On call
func (*EpochNotifier_Expecter) Start ¶
func (_e *EpochNotifier_Expecter) Start(ctx interface{}) *EpochNotifier_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*EpochNotifier_Expecter) String ¶
func (_e *EpochNotifier_Expecter) String() *EpochNotifier_String_Call
String is a helper method to define mock.On call
func (*EpochNotifier_Expecter) Subscribe ¶
func (_e *EpochNotifier_Expecter) Subscribe(id interface{}) *EpochNotifier_Subscribe_Call
Subscribe is a helper method to define mock.On call
- id string
type EpochNotifier_ForcePublishEpochEvent_Call ¶
EpochNotifier_ForcePublishEpochEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForcePublishEpochEvent'
func (*EpochNotifier_ForcePublishEpochEvent_Call) Return ¶
func (_c *EpochNotifier_ForcePublishEpochEvent_Call) Return() *EpochNotifier_ForcePublishEpochEvent_Call
func (*EpochNotifier_ForcePublishEpochEvent_Call) Run ¶
func (_c *EpochNotifier_ForcePublishEpochEvent_Call) Run(run func()) *EpochNotifier_ForcePublishEpochEvent_Call
func (*EpochNotifier_ForcePublishEpochEvent_Call) RunAndReturn ¶
func (_c *EpochNotifier_ForcePublishEpochEvent_Call) RunAndReturn(run func()) *EpochNotifier_ForcePublishEpochEvent_Call
type EpochNotifier_GetEpochStatus_Call ¶
EpochNotifier_GetEpochStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEpochStatus'
func (*EpochNotifier_GetEpochStatus_Call) Return ¶
func (_c *EpochNotifier_GetEpochStatus_Call) Return(_a0 types.EpochStatus) *EpochNotifier_GetEpochStatus_Call
func (*EpochNotifier_GetEpochStatus_Call) Run ¶
func (_c *EpochNotifier_GetEpochStatus_Call) Run(run func()) *EpochNotifier_GetEpochStatus_Call
func (*EpochNotifier_GetEpochStatus_Call) RunAndReturn ¶
func (_c *EpochNotifier_GetEpochStatus_Call) RunAndReturn(run func() types.EpochStatus) *EpochNotifier_GetEpochStatus_Call
type EpochNotifier_Start_Call ¶
EpochNotifier_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*EpochNotifier_Start_Call) Return ¶
func (_c *EpochNotifier_Start_Call) Return() *EpochNotifier_Start_Call
func (*EpochNotifier_Start_Call) Run ¶
func (_c *EpochNotifier_Start_Call) Run(run func(ctx context.Context)) *EpochNotifier_Start_Call
func (*EpochNotifier_Start_Call) RunAndReturn ¶
func (_c *EpochNotifier_Start_Call) RunAndReturn(run func(context.Context)) *EpochNotifier_Start_Call
type EpochNotifier_String_Call ¶
EpochNotifier_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*EpochNotifier_String_Call) Return ¶
func (_c *EpochNotifier_String_Call) Return(_a0 string) *EpochNotifier_String_Call
func (*EpochNotifier_String_Call) Run ¶
func (_c *EpochNotifier_String_Call) Run(run func()) *EpochNotifier_String_Call
func (*EpochNotifier_String_Call) RunAndReturn ¶
func (_c *EpochNotifier_String_Call) RunAndReturn(run func() string) *EpochNotifier_String_Call
type EpochNotifier_Subscribe_Call ¶
EpochNotifier_Subscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Subscribe'
func (*EpochNotifier_Subscribe_Call) Return ¶
func (_c *EpochNotifier_Subscribe_Call) Return(_a0 <-chan types.EpochEvent) *EpochNotifier_Subscribe_Call
func (*EpochNotifier_Subscribe_Call) Run ¶
func (_c *EpochNotifier_Subscribe_Call) Run(run func(id string)) *EpochNotifier_Subscribe_Call
func (*EpochNotifier_Subscribe_Call) RunAndReturn ¶
func (_c *EpochNotifier_Subscribe_Call) RunAndReturn(run func(string) <-chan types.EpochEvent) *EpochNotifier_Subscribe_Call