query

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package query is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputTextFile

type InputTextFile struct {
	FilePath  string
	Content   string
	Extension string
}

type MockOpenAIClient

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

MockOpenAIClient is a mock of OpenAIClient interface.

func NewMockOpenAIClient

func NewMockOpenAIClient(ctrl *gomock.Controller) *MockOpenAIClient

NewMockOpenAIClient creates a new mock instance.

func (*MockOpenAIClient) Ask

func (m *MockOpenAIClient) Ask(ctx context.Context, query, outputFormat, responseLanguage string, textFiles []InputTextFile) (string, error)

Ask mocks base method.

func (*MockOpenAIClient) EXPECT

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

type MockOpenAIClientMockRecorder

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

MockOpenAIClientMockRecorder is the mock recorder for MockOpenAIClient.

func (*MockOpenAIClientMockRecorder) Ask

func (mr *MockOpenAIClientMockRecorder) Ask(ctx, query, outputFormat, responseLanguage, textFiles any) *gomock.Call

Ask indicates an expected call of Ask.

type MockUsecaseQuery

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

MockUsecaseQuery is a mock of UsecaseQuery interface.

func NewMockUsecaseQuery

func NewMockUsecaseQuery(ctrl *gomock.Controller) *MockUsecaseQuery

NewMockUsecaseQuery creates a new mock instance.

func (*MockUsecaseQuery) EXPECT

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

func (*MockUsecaseQuery) QueryToOpenAI

func (m *MockUsecaseQuery) QueryToOpenAI(query, outputFormat, responseLanguage string, filePaths []string) (string, error)

QueryToOpenAI mocks base method.

type MockUsecaseQueryMockRecorder

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

MockUsecaseQueryMockRecorder is the mock recorder for MockUsecaseQuery.

func (*MockUsecaseQueryMockRecorder) QueryToOpenAI

func (mr *MockUsecaseQueryMockRecorder) QueryToOpenAI(query, outputFormat, responseLanguage, filePaths any) *gomock.Call

QueryToOpenAI indicates an expected call of QueryToOpenAI.

type OpenAIClient

type OpenAIClient interface {
	Ask(ctx context.Context, query string, outputFormat string, responseLanguage string, textFiles []InputTextFile) (string, error)
}

type UsecaseQuery

type UsecaseQuery interface {
	QueryToOpenAI(query string, outputFormat string, responseLanguage string, filePaths []string) (string, error)
}

func NewUsecaseQuery

func NewUsecaseQuery(openAIClient OpenAIClient) UsecaseQuery

Jump to

Keyboard shortcuts

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