Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRouter

type MockRouter struct {
	// contains filtered or unexported fields
}

MockRouter is a mock of Router interface.

func NewMockRouter

func NewMockRouter(ctrl *gomock.Controller) *MockRouter

NewMockRouter creates a new mock instance.

func (*MockRouter) EXPECT

func (m *MockRouter) EXPECT() *MockRouterMockRecorder

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

func (*MockRouter) RoutePrompt

func (m *MockRouter) RoutePrompt(ctx context.Context, name string) (*vmcp.BackendTarget, error)

RoutePrompt mocks base method.

func (*MockRouter) RouteResource

func (m *MockRouter) RouteResource(ctx context.Context, uri string) (*vmcp.BackendTarget, error)

RouteResource mocks base method.

func (*MockRouter) RouteTool

func (m *MockRouter) RouteTool(ctx context.Context, toolName string) (*vmcp.BackendTarget, error)

RouteTool mocks base method.

type MockRouterMockRecorder

type MockRouterMockRecorder struct {
	// contains filtered or unexported fields
}

MockRouterMockRecorder is the mock recorder for MockRouter.

func (*MockRouterMockRecorder) RoutePrompt

func (mr *MockRouterMockRecorder) RoutePrompt(ctx, name any) *gomock.Call

RoutePrompt indicates an expected call of RoutePrompt.

func (*MockRouterMockRecorder) RouteResource

func (mr *MockRouterMockRecorder) RouteResource(ctx, uri any) *gomock.Call

RouteResource indicates an expected call of RouteResource.

func (*MockRouterMockRecorder) RouteTool

func (mr *MockRouterMockRecorder) RouteTool(ctx, toolName any) *gomock.Call

RouteTool indicates an expected call of RouteTool.

type MockRoutingStrategy

type MockRoutingStrategy struct {
	// contains filtered or unexported fields
}

MockRoutingStrategy is a mock of RoutingStrategy interface.

func NewMockRoutingStrategy

func NewMockRoutingStrategy(ctrl *gomock.Controller) *MockRoutingStrategy

NewMockRoutingStrategy creates a new mock instance.

func (*MockRoutingStrategy) EXPECT

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

func (*MockRoutingStrategy) SelectBackend

func (m *MockRoutingStrategy) SelectBackend(ctx context.Context, candidates []*vmcp.BackendTarget) (*vmcp.BackendTarget, error)

SelectBackend mocks base method.

type MockRoutingStrategyMockRecorder

type MockRoutingStrategyMockRecorder struct {
	// contains filtered or unexported fields
}

MockRoutingStrategyMockRecorder is the mock recorder for MockRoutingStrategy.

func (*MockRoutingStrategyMockRecorder) SelectBackend

func (mr *MockRoutingStrategyMockRecorder) SelectBackend(ctx, candidates any) *gomock.Call

SelectBackend indicates an expected call of SelectBackend.

type MockSessionAffinityProvider

type MockSessionAffinityProvider struct {
	// contains filtered or unexported fields
}

MockSessionAffinityProvider is a mock of SessionAffinityProvider interface.

func NewMockSessionAffinityProvider

func NewMockSessionAffinityProvider(ctrl *gomock.Controller) *MockSessionAffinityProvider

NewMockSessionAffinityProvider creates a new mock instance.

func (*MockSessionAffinityProvider) EXPECT

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

func (*MockSessionAffinityProvider) GetBackendForSession

func (m *MockSessionAffinityProvider) GetBackendForSession(ctx context.Context, sessionID string) (*vmcp.BackendTarget, error)

GetBackendForSession mocks base method.

func (*MockSessionAffinityProvider) RemoveSession

func (m *MockSessionAffinityProvider) RemoveSession(ctx context.Context, sessionID string) error

RemoveSession mocks base method.

func (*MockSessionAffinityProvider) SetBackendForSession

func (m *MockSessionAffinityProvider) SetBackendForSession(ctx context.Context, sessionID string, target *vmcp.BackendTarget) error

SetBackendForSession mocks base method.

type MockSessionAffinityProviderMockRecorder

type MockSessionAffinityProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockSessionAffinityProviderMockRecorder is the mock recorder for MockSessionAffinityProvider.

func (*MockSessionAffinityProviderMockRecorder) GetBackendForSession

func (mr *MockSessionAffinityProviderMockRecorder) GetBackendForSession(ctx, sessionID any) *gomock.Call

GetBackendForSession indicates an expected call of GetBackendForSession.

func (*MockSessionAffinityProviderMockRecorder) RemoveSession

func (mr *MockSessionAffinityProviderMockRecorder) RemoveSession(ctx, sessionID any) *gomock.Call

RemoveSession indicates an expected call of RemoveSession.

func (*MockSessionAffinityProviderMockRecorder) SetBackendForSession

func (mr *MockSessionAffinityProviderMockRecorder) SetBackendForSession(ctx, sessionID, target any) *gomock.Call

SetBackendForSession indicates an expected call of SetBackendForSession.

Jump to

Keyboard shortcuts

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