Documentation
¶
Overview ¶
Package handler is a generated GoMock package.
Index ¶
- func WrapShards(shardIDs []string) []*types.Shard
- type Executor
- type Handler
- type MockExecutor
- type MockExecutorMockRecorder
- 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()
- func (m *MockHandler) WatchNamespaceState(arg0 *types.WatchNamespaceStateRequest, arg1 WatchNamespaceStateServer) error
- type MockHandlerMockRecorder
- func (mr *MockHandlerMockRecorder) GetShardOwner(arg0, arg1 any) *gomock.Call
- func (mr *MockHandlerMockRecorder) Health(arg0 any) *gomock.Call
- func (mr *MockHandlerMockRecorder) Start() *gomock.Call
- func (mr *MockHandlerMockRecorder) Stop() *gomock.Call
- func (mr *MockHandlerMockRecorder) WatchNamespaceState(arg0, arg1 any) *gomock.Call
- type MockWatchNamespaceStateServer
- type MockWatchNamespaceStateServerMockRecorder
- type WatchNamespaceStateServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapShards ¶ added in v1.4.0
Types ¶
type Executor ¶ added in v1.3.4
type Executor interface {
Heartbeat(context.Context, *types.ExecutorHeartbeatRequest) (*types.ExecutorHeartbeatResponse, error)
}
func NewExecutorHandler ¶ added in v1.3.4
type Handler ¶
type Handler interface {
common.Daemon
Health(context.Context) (*types.HealthStatus, error)
GetShardOwner(context.Context, *types.GetShardOwnerRequest) (*types.GetShardOwnerResponse, error)
WatchNamespaceState(*types.WatchNamespaceStateRequest, WatchNamespaceStateServer) error
}
Handler is the interface for shard distributor handler
func NewHandler ¶
type MockExecutor ¶ added in v1.3.4
type MockExecutor struct {
// contains filtered or unexported fields
}
MockExecutor is a mock of Executor interface.
func NewMockExecutor ¶ added in v1.3.4
func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor
NewMockExecutor creates a new mock instance.
func (*MockExecutor) EXPECT ¶ added in v1.3.4
func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutor) Heartbeat ¶ added in v1.3.4
func (m *MockExecutor) Heartbeat(arg0 context.Context, arg1 *types.ExecutorHeartbeatRequest) (*types.ExecutorHeartbeatResponse, error)
Heartbeat mocks base method.
type MockExecutorMockRecorder ¶ added in v1.3.4
type MockExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutorMockRecorder is the mock recorder for MockExecutor.
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.
func (*MockHandler) WatchNamespaceState ¶ added in v1.4.0
func (m *MockHandler) WatchNamespaceState(arg0 *types.WatchNamespaceStateRequest, arg1 WatchNamespaceStateServer) error
WatchNamespaceState 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.
func (*MockHandlerMockRecorder) WatchNamespaceState ¶ added in v1.4.0
func (mr *MockHandlerMockRecorder) WatchNamespaceState(arg0, arg1 any) *gomock.Call
WatchNamespaceState indicates an expected call of WatchNamespaceState.
type MockWatchNamespaceStateServer ¶ added in v1.4.0
type MockWatchNamespaceStateServer struct {
// contains filtered or unexported fields
}
MockWatchNamespaceStateServer is a mock of WatchNamespaceStateServer interface.
func NewMockWatchNamespaceStateServer ¶ added in v1.4.0
func NewMockWatchNamespaceStateServer(ctrl *gomock.Controller) *MockWatchNamespaceStateServer
NewMockWatchNamespaceStateServer creates a new mock instance.
func (*MockWatchNamespaceStateServer) Context ¶ added in v1.4.0
func (m *MockWatchNamespaceStateServer) Context() context.Context
Context mocks base method.
func (*MockWatchNamespaceStateServer) EXPECT ¶ added in v1.4.0
func (m *MockWatchNamespaceStateServer) EXPECT() *MockWatchNamespaceStateServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWatchNamespaceStateServer) Send ¶ added in v1.4.0
func (m *MockWatchNamespaceStateServer) Send(arg0 *types.WatchNamespaceStateResponse) error
Send mocks base method.
type MockWatchNamespaceStateServerMockRecorder ¶ added in v1.4.0
type MockWatchNamespaceStateServerMockRecorder struct {
// contains filtered or unexported fields
}
MockWatchNamespaceStateServerMockRecorder is the mock recorder for MockWatchNamespaceStateServer.
func (*MockWatchNamespaceStateServerMockRecorder) Context ¶ added in v1.4.0
func (mr *MockWatchNamespaceStateServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
type WatchNamespaceStateServer ¶ added in v1.4.0
type WatchNamespaceStateServer interface {
Context() context.Context
Send(*types.WatchNamespaceStateResponse) error
}