handler

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package handler is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapShards added in v1.4.0

func WrapShards(shardIDs []string) []*types.Shard

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

func NewExecutorHandler(
	logger log.Logger,
	storage store.Store,
	timeSource clock.TimeSource,
	shardDistributionCfg config.ShardDistribution,
	cfg *config.Config,
	metricsClient metrics.Client,
) Executor

type Handler

Handler is the interface for shard distributor handler

func NewHandler

func NewHandler(
	logger log.Logger,
	shardDistributionCfg config.ShardDistribution,
	storage store.Store,
) Handler

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockExecutor) Heartbeat added in v1.3.4

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.

func (*MockExecutorMockRecorder) Heartbeat added in v1.3.4

func (mr *MockExecutorMockRecorder) Heartbeat(arg0, arg1 any) *gomock.Call

Heartbeat indicates an expected call of Heartbeat.

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

GetShardOwner mocks base method.

func (*MockHandler) Health

func (m *MockHandler) Health(arg0 context.Context) (*types.HealthStatus, error)

Health mocks base method.

func (*MockHandler) Start

func (m *MockHandler) Start()

Start mocks base method.

func (*MockHandler) Stop

func (m *MockHandler) Stop()

Stop 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

Context mocks base method.

func (*MockWatchNamespaceStateServer) EXPECT added in v1.4.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWatchNamespaceStateServer) Send added in v1.4.0

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

Context indicates an expected call of Context.

func (*MockWatchNamespaceStateServerMockRecorder) Send added in v1.4.0

Send indicates an expected call of Send.

type WatchNamespaceStateServer added in v1.4.0

type WatchNamespaceStateServer interface {
	Context() context.Context
	Send(*types.WatchNamespaceStateResponse) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL