Documentation ¶
Overview ¶
Package handlermock is a generated GoMock package.
Index ¶
- type Handler
- func (m *Handler) AwaitStopped(arg0 context.Context) (time.Duration, error)
- func (m *Handler) Context() *snow.ConsensusContext
- func (m *Handler) EXPECT() *HandlerMockRecorder
- func (m *Handler) GetEngineManager() *handler.EngineManager
- func (m *Handler) HealthCheck(arg0 context.Context) (any, error)
- func (m *Handler) Len() int
- func (m *Handler) Push(arg0 context.Context, arg1 handler.Message)
- func (m *Handler) RegisterTimeout(arg0 time.Duration)
- func (m *Handler) SetEngineManager(arg0 *handler.EngineManager)
- func (m *Handler) SetOnStopped(arg0 func())
- func (m *Handler) ShouldHandle(arg0 ids.NodeID) bool
- func (m *Handler) Start(arg0 context.Context, arg1 bool)
- func (m *Handler) Stop(arg0 context.Context)
- func (m *Handler) StopWithError(arg0 context.Context, arg1 error)
- type HandlerMockRecorder
- func (mr *HandlerMockRecorder) AwaitStopped(arg0 any) *gomock.Call
- func (mr *HandlerMockRecorder) Context() *gomock.Call
- func (mr *HandlerMockRecorder) GetEngineManager() *gomock.Call
- func (mr *HandlerMockRecorder) HealthCheck(arg0 any) *gomock.Call
- func (mr *HandlerMockRecorder) Len() *gomock.Call
- func (mr *HandlerMockRecorder) Push(arg0, arg1 any) *gomock.Call
- func (mr *HandlerMockRecorder) RegisterTimeout(arg0 any) *gomock.Call
- func (mr *HandlerMockRecorder) SetEngineManager(arg0 any) *gomock.Call
- func (mr *HandlerMockRecorder) SetOnStopped(arg0 any) *gomock.Call
- func (mr *HandlerMockRecorder) ShouldHandle(arg0 any) *gomock.Call
- func (mr *HandlerMockRecorder) Start(arg0, arg1 any) *gomock.Call
- func (mr *HandlerMockRecorder) Stop(arg0 any) *gomock.Call
- func (mr *HandlerMockRecorder) StopWithError(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is a mock of Handler interface.
func NewHandler ¶
func NewHandler(ctrl *gomock.Controller) *Handler
NewHandler creates a new mock instance.
func (*Handler) AwaitStopped ¶
AwaitStopped mocks base method.
func (*Handler) Context ¶
func (m *Handler) Context() *snow.ConsensusContext
Context mocks base method.
func (*Handler) EXPECT ¶
func (m *Handler) EXPECT() *HandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Handler) GetEngineManager ¶
func (m *Handler) GetEngineManager() *handler.EngineManager
GetEngineManager mocks base method.
func (*Handler) HealthCheck ¶
HealthCheck mocks base method.
func (*Handler) RegisterTimeout ¶
RegisterTimeout mocks base method.
func (*Handler) SetEngineManager ¶
func (m *Handler) SetEngineManager(arg0 *handler.EngineManager)
SetEngineManager mocks base method.
func (*Handler) SetOnStopped ¶
func (m *Handler) SetOnStopped(arg0 func())
SetOnStopped mocks base method.
func (*Handler) ShouldHandle ¶
ShouldHandle mocks base method.
type HandlerMockRecorder ¶
type HandlerMockRecorder struct {
// contains filtered or unexported fields
}
HandlerMockRecorder is the mock recorder for Handler.
func (*HandlerMockRecorder) AwaitStopped ¶
func (mr *HandlerMockRecorder) AwaitStopped(arg0 any) *gomock.Call
AwaitStopped indicates an expected call of AwaitStopped.
func (*HandlerMockRecorder) Context ¶
func (mr *HandlerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*HandlerMockRecorder) GetEngineManager ¶
func (mr *HandlerMockRecorder) GetEngineManager() *gomock.Call
GetEngineManager indicates an expected call of GetEngineManager.
func (*HandlerMockRecorder) HealthCheck ¶
func (mr *HandlerMockRecorder) HealthCheck(arg0 any) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*HandlerMockRecorder) Len ¶
func (mr *HandlerMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len.
func (*HandlerMockRecorder) Push ¶
func (mr *HandlerMockRecorder) Push(arg0, arg1 any) *gomock.Call
Push indicates an expected call of Push.
func (*HandlerMockRecorder) RegisterTimeout ¶
func (mr *HandlerMockRecorder) RegisterTimeout(arg0 any) *gomock.Call
RegisterTimeout indicates an expected call of RegisterTimeout.
func (*HandlerMockRecorder) SetEngineManager ¶
func (mr *HandlerMockRecorder) SetEngineManager(arg0 any) *gomock.Call
SetEngineManager indicates an expected call of SetEngineManager.
func (*HandlerMockRecorder) SetOnStopped ¶
func (mr *HandlerMockRecorder) SetOnStopped(arg0 any) *gomock.Call
SetOnStopped indicates an expected call of SetOnStopped.
func (*HandlerMockRecorder) ShouldHandle ¶
func (mr *HandlerMockRecorder) ShouldHandle(arg0 any) *gomock.Call
ShouldHandle indicates an expected call of ShouldHandle.
func (*HandlerMockRecorder) Start ¶
func (mr *HandlerMockRecorder) Start(arg0, arg1 any) *gomock.Call
Start indicates an expected call of Start.
func (*HandlerMockRecorder) Stop ¶
func (mr *HandlerMockRecorder) Stop(arg0 any) *gomock.Call
Stop indicates an expected call of Stop.
func (*HandlerMockRecorder) StopWithError ¶
func (mr *HandlerMockRecorder) StopWithError(arg0, arg1 any) *gomock.Call
StopWithError indicates an expected call of StopWithError.