mocks

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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 MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Do

func (m *MockClient) Do(req *http.Request) (*http.Response, error)

Do mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) Get

func (m *MockClient) Get(url string) (*http.Response, error)

Get mocks base method.

func (*MockClient) Post

func (m *MockClient) Post(url, bodyType, body string) (*http.Response, error)

Post mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Do

func (mr *MockClientMockRecorder) Do(req any) *gomock.Call

Do indicates an expected call of Do.

func (*MockClientMockRecorder) Get

func (mr *MockClientMockRecorder) Get(url any) *gomock.Call

Get indicates an expected call of Get.

func (*MockClientMockRecorder) Post

func (mr *MockClientMockRecorder) Post(url, bodyType, body any) *gomock.Call

Post indicates an expected call of Post.

type MockIProvider added in v0.2.22

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

MockIProvider is a mock of IProvider interface.

func NewMockIProvider added in v0.2.22

func NewMockIProvider(ctrl *gomock.Controller) *MockIProvider

NewMockIProvider creates a new mock instance.

func (*MockIProvider) ChatCompletions added in v0.2.22

ChatCompletions mocks base method.

func (*MockIProvider) EXPECT added in v0.2.22

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

func (*MockIProvider) GetAuthType added in v0.2.22

func (m *MockIProvider) GetAuthType() string

GetAuthType mocks base method.

func (*MockIProvider) GetExtraHeaders added in v0.2.22

func (m *MockIProvider) GetExtraHeaders() map[string][]string

GetExtraHeaders mocks base method.

func (*MockIProvider) GetID added in v0.2.22

func (m *MockIProvider) GetID() *providers.Provider

GetID mocks base method.

func (*MockIProvider) GetName added in v0.2.22

func (m *MockIProvider) GetName() string

GetName mocks base method.

func (*MockIProvider) GetToken added in v0.2.22

func (m *MockIProvider) GetToken() string

GetToken mocks base method.

func (*MockIProvider) GetURL added in v0.2.22

func (m *MockIProvider) GetURL() string

GetURL mocks base method.

func (*MockIProvider) ListModels added in v0.2.22

ListModels mocks base method.

func (*MockIProvider) StreamChatCompletions added in v0.2.22

func (m *MockIProvider) StreamChatCompletions(ctx context.Context, clientReq providers.CreateChatCompletionRequest) (<-chan []byte, error)

StreamChatCompletions mocks base method.

type MockIProviderMockRecorder added in v0.2.22

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

MockIProviderMockRecorder is the mock recorder for MockIProvider.

func (*MockIProviderMockRecorder) ChatCompletions added in v0.2.22

func (mr *MockIProviderMockRecorder) ChatCompletions(ctx, clientReq any) *gomock.Call

ChatCompletions indicates an expected call of ChatCompletions.

func (*MockIProviderMockRecorder) GetAuthType added in v0.2.22

func (mr *MockIProviderMockRecorder) GetAuthType() *gomock.Call

GetAuthType indicates an expected call of GetAuthType.

func (*MockIProviderMockRecorder) GetExtraHeaders added in v0.2.22

func (mr *MockIProviderMockRecorder) GetExtraHeaders() *gomock.Call

GetExtraHeaders indicates an expected call of GetExtraHeaders.

func (*MockIProviderMockRecorder) GetID added in v0.2.22

func (mr *MockIProviderMockRecorder) GetID() *gomock.Call

GetID indicates an expected call of GetID.

func (*MockIProviderMockRecorder) GetName added in v0.2.22

func (mr *MockIProviderMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockIProviderMockRecorder) GetToken added in v0.2.22

func (mr *MockIProviderMockRecorder) GetToken() *gomock.Call

GetToken indicates an expected call of GetToken.

func (*MockIProviderMockRecorder) GetURL added in v0.2.22

func (mr *MockIProviderMockRecorder) GetURL() *gomock.Call

GetURL indicates an expected call of GetURL.

func (*MockIProviderMockRecorder) ListModels added in v0.2.22

func (mr *MockIProviderMockRecorder) ListModels(ctx any) *gomock.Call

ListModels indicates an expected call of ListModels.

func (*MockIProviderMockRecorder) StreamChatCompletions added in v0.2.22

func (mr *MockIProviderMockRecorder) StreamChatCompletions(ctx, clientReq any) *gomock.Call

StreamChatCompletions indicates an expected call of StreamChatCompletions.

type MockLogger

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

MockLogger is a mock of Logger interface.

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) Debug

func (m *MockLogger) Debug(message string, fields ...any)

Debug mocks base method.

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Error

func (m *MockLogger) Error(message string, err error, fields ...any)

Error mocks base method.

func (*MockLogger) Fatal

func (m *MockLogger) Fatal(message string, err error, fields ...any)

Fatal mocks base method.

func (*MockLogger) Info

func (m *MockLogger) Info(message string, fields ...any)

Info mocks base method.

type MockLoggerMockRecorder

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

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Debug

func (mr *MockLoggerMockRecorder) Debug(message any, fields ...any) *gomock.Call

Debug indicates an expected call of Debug.

func (*MockLoggerMockRecorder) Error

func (mr *MockLoggerMockRecorder) Error(message, err any, fields ...any) *gomock.Call

Error indicates an expected call of Error.

func (*MockLoggerMockRecorder) Fatal

func (mr *MockLoggerMockRecorder) Fatal(message, err any, fields ...any) *gomock.Call

Fatal indicates an expected call of Fatal.

func (*MockLoggerMockRecorder) Info

func (mr *MockLoggerMockRecorder) Info(message any, fields ...any) *gomock.Call

Info indicates an expected call of Info.

type MockMCPClientInterface added in v0.7.0

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

MockMCPClientInterface is a mock of MCPClientInterface interface.

func NewMockMCPClientInterface added in v0.7.0

func NewMockMCPClientInterface(ctrl *gomock.Controller) *MockMCPClientInterface

NewMockMCPClientInterface creates a new mock instance.

func (*MockMCPClientInterface) ConvertMCPToolsToChatCompletionTools added in v0.7.0

func (m *MockMCPClientInterface) ConvertMCPToolsToChatCompletionTools(arg0 []mcp.Tool) []providers.ChatCompletionTool

ConvertMCPToolsToChatCompletionTools mocks base method.

func (*MockMCPClientInterface) EXPECT added in v0.7.0

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

func (*MockMCPClientInterface) ExecuteTool added in v0.7.0

func (m *MockMCPClientInterface) ExecuteTool(ctx context.Context, request mcp.Request, serverURL string) (*mcp.CallToolResult, error)

ExecuteTool mocks base method.

func (*MockMCPClientInterface) GetAllChatCompletionTools added in v0.7.0

func (m *MockMCPClientInterface) GetAllChatCompletionTools() []providers.ChatCompletionTool

GetAllChatCompletionTools mocks base method.

func (*MockMCPClientInterface) GetServerCapabilities added in v0.7.0

func (m *MockMCPClientInterface) GetServerCapabilities() map[string]mcp.ServerCapabilities

GetServerCapabilities mocks base method.

func (*MockMCPClientInterface) GetServerTools added in v0.7.0

func (m *MockMCPClientInterface) GetServerTools(serverURL string) ([]mcp.Tool, error)

GetServerTools mocks base method.

func (*MockMCPClientInterface) GetServers added in v0.7.0

func (m *MockMCPClientInterface) GetServers() []string

GetServers mocks base method.

func (*MockMCPClientInterface) InitializeAll added in v0.7.0

func (m *MockMCPClientInterface) InitializeAll(ctx context.Context) error

InitializeAll mocks base method.

func (*MockMCPClientInterface) IsInitialized added in v0.7.0

func (m *MockMCPClientInterface) IsInitialized() bool

IsInitialized mocks base method.

type MockMCPClientInterfaceMockRecorder added in v0.7.0

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

MockMCPClientInterfaceMockRecorder is the mock recorder for MockMCPClientInterface.

func (*MockMCPClientInterfaceMockRecorder) ConvertMCPToolsToChatCompletionTools added in v0.7.0

func (mr *MockMCPClientInterfaceMockRecorder) ConvertMCPToolsToChatCompletionTools(arg0 any) *gomock.Call

ConvertMCPToolsToChatCompletionTools indicates an expected call of ConvertMCPToolsToChatCompletionTools.

func (*MockMCPClientInterfaceMockRecorder) ExecuteTool added in v0.7.0

func (mr *MockMCPClientInterfaceMockRecorder) ExecuteTool(ctx, request, serverURL any) *gomock.Call

ExecuteTool indicates an expected call of ExecuteTool.

func (*MockMCPClientInterfaceMockRecorder) GetAllChatCompletionTools added in v0.7.0

func (mr *MockMCPClientInterfaceMockRecorder) GetAllChatCompletionTools() *gomock.Call

GetAllChatCompletionTools indicates an expected call of GetAllChatCompletionTools.

func (*MockMCPClientInterfaceMockRecorder) GetServerCapabilities added in v0.7.0

func (mr *MockMCPClientInterfaceMockRecorder) GetServerCapabilities() *gomock.Call

GetServerCapabilities indicates an expected call of GetServerCapabilities.

func (*MockMCPClientInterfaceMockRecorder) GetServerTools added in v0.7.0

func (mr *MockMCPClientInterfaceMockRecorder) GetServerTools(serverURL any) *gomock.Call

GetServerTools indicates an expected call of GetServerTools.

func (*MockMCPClientInterfaceMockRecorder) GetServers added in v0.7.0

GetServers indicates an expected call of GetServers.

func (*MockMCPClientInterfaceMockRecorder) InitializeAll added in v0.7.0

func (mr *MockMCPClientInterfaceMockRecorder) InitializeAll(ctx any) *gomock.Call

InitializeAll indicates an expected call of InitializeAll.

func (*MockMCPClientInterfaceMockRecorder) IsInitialized added in v0.7.0

func (mr *MockMCPClientInterfaceMockRecorder) IsInitialized() *gomock.Call

IsInitialized indicates an expected call of IsInitialized.

type MockProviderRegistry added in v0.1.11

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

MockProviderRegistry is a mock of ProviderRegistry interface.

func NewMockProviderRegistry added in v0.1.11

func NewMockProviderRegistry(ctrl *gomock.Controller) *MockProviderRegistry

NewMockProviderRegistry creates a new mock instance.

func (*MockProviderRegistry) BuildProvider added in v0.1.11

func (m *MockProviderRegistry) BuildProvider(providerID providers.Provider, client providers.Client) (providers.IProvider, error)

BuildProvider mocks base method.

func (*MockProviderRegistry) EXPECT added in v0.1.11

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

func (*MockProviderRegistry) GetProviders added in v0.1.11

func (m *MockProviderRegistry) GetProviders() map[providers.Provider]*providers.Config

GetProviders mocks base method.

type MockProviderRegistryMockRecorder added in v0.1.11

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

MockProviderRegistryMockRecorder is the mock recorder for MockProviderRegistry.

func (*MockProviderRegistryMockRecorder) BuildProvider added in v0.1.11

func (mr *MockProviderRegistryMockRecorder) BuildProvider(providerID, client any) *gomock.Call

BuildProvider indicates an expected call of BuildProvider.

func (*MockProviderRegistryMockRecorder) GetProviders added in v0.1.11

func (mr *MockProviderRegistryMockRecorder) GetProviders() *gomock.Call

GetProviders indicates an expected call of GetProviders.

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) ChatCompletionsHandler added in v0.2.21

func (m *MockRouter) ChatCompletionsHandler(c *gin.Context)

ChatCompletionsHandler mocks base method.

func (*MockRouter) EXPECT

func (m *MockRouter) EXPECT() *MockRouterMockRecorder

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

func (*MockRouter) HealthcheckHandler

func (m *MockRouter) HealthcheckHandler(c *gin.Context)

HealthcheckHandler mocks base method.

func (*MockRouter) ListModelsHandler

func (m *MockRouter) ListModelsHandler(c *gin.Context)

ListModelsHandler mocks base method.

func (*MockRouter) ListToolsHandler added in v0.7.0

func (m *MockRouter) ListToolsHandler(c *gin.Context)

ListToolsHandler mocks base method.

func (*MockRouter) NotFoundHandler

func (m *MockRouter) NotFoundHandler(c *gin.Context)

NotFoundHandler mocks base method.

func (*MockRouter) ProxyHandler

func (m *MockRouter) ProxyHandler(c *gin.Context)

ProxyHandler mocks base method.

type MockRouterMockRecorder

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

MockRouterMockRecorder is the mock recorder for MockRouter.

func (*MockRouterMockRecorder) ChatCompletionsHandler added in v0.2.21

func (mr *MockRouterMockRecorder) ChatCompletionsHandler(c any) *gomock.Call

ChatCompletionsHandler indicates an expected call of ChatCompletionsHandler.

func (*MockRouterMockRecorder) HealthcheckHandler

func (mr *MockRouterMockRecorder) HealthcheckHandler(c any) *gomock.Call

HealthcheckHandler indicates an expected call of HealthcheckHandler.

func (*MockRouterMockRecorder) ListModelsHandler

func (mr *MockRouterMockRecorder) ListModelsHandler(c any) *gomock.Call

ListModelsHandler indicates an expected call of ListModelsHandler.

func (*MockRouterMockRecorder) ListToolsHandler added in v0.7.0

func (mr *MockRouterMockRecorder) ListToolsHandler(c any) *gomock.Call

ListToolsHandler indicates an expected call of ListToolsHandler.

func (*MockRouterMockRecorder) NotFoundHandler

func (mr *MockRouterMockRecorder) NotFoundHandler(c any) *gomock.Call

NotFoundHandler indicates an expected call of NotFoundHandler.

func (*MockRouterMockRecorder) ProxyHandler

func (mr *MockRouterMockRecorder) ProxyHandler(c any) *gomock.Call

ProxyHandler indicates an expected call of ProxyHandler.

Jump to

Keyboard shortcuts

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