Documentation ¶
Overview ¶
Package handler is a generated GoMock package.
Index ¶
- type Handler
- type MockHandler
- func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
- func (m *MockHandler) GetShardOwner(arg0 context.Context, arg1 *types.GetShardOwnerRequest) (*types.GetShardOwnerResponse, error)
- func (m *MockHandler) Health(arg0 context.Context) (*types.HealthStatus, error)
- func (m *MockHandler) Start()
- func (m *MockHandler) Stop()
- type MockHandlerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { common.Daemon Health(context.Context) (*types.HealthStatus, error) GetShardOwner(context.Context, *types.GetShardOwnerRequest) (*types.GetShardOwnerResponse, error) }
Handler is the interface for shard distributor handler
func NewHandler ¶
func NewHandler( logger log.Logger, metricsClient metrics.Client, matchingPeerResolver matching.PeerResolver, historyPeerResolver history.PeerResolver, ) Handler
type MockHandler ¶
type MockHandler struct {
// contains filtered or unexported fields
}
MockHandler is a mock of Handler interface.
func NewMockHandler ¶
func NewMockHandler(ctrl *gomock.Controller) *MockHandler
NewMockHandler creates a new mock instance.
func (*MockHandler) EXPECT ¶
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHandler) GetShardOwner ¶
func (m *MockHandler) GetShardOwner(arg0 context.Context, arg1 *types.GetShardOwnerRequest) (*types.GetShardOwnerResponse, error)
GetShardOwner mocks base method.
func (*MockHandler) Health ¶
func (m *MockHandler) Health(arg0 context.Context) (*types.HealthStatus, error)
Health mocks base method.
type MockHandlerMockRecorder ¶
type MockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerMockRecorder is the mock recorder for MockHandler.
func (*MockHandlerMockRecorder) GetShardOwner ¶
func (mr *MockHandlerMockRecorder) GetShardOwner(arg0, arg1 any) *gomock.Call
GetShardOwner indicates an expected call of GetShardOwner.
func (*MockHandlerMockRecorder) Health ¶
func (mr *MockHandlerMockRecorder) Health(arg0 any) *gomock.Call
Health indicates an expected call of Health.
func (*MockHandlerMockRecorder) Start ¶
func (mr *MockHandlerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockHandlerMockRecorder) Stop ¶
func (mr *MockHandlerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
Click to show internal directories.
Click to hide internal directories.