mock_service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Package mock_service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConversationService

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

MockConversationService is a mock of ConversationService interface.

func NewMockConversationService

func NewMockConversationService(ctrl *gomock.Controller) *MockConversationService

NewMockConversationService creates a new mock instance.

func (*MockConversationService) DeleteByIds

func (m *MockConversationService) DeleteByIds(ids []uuid.UUID) error

DeleteByIds mocks base method.

func (*MockConversationService) EXPECT

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

func (*MockConversationService) FeedbackMessage

func (m *MockConversationService) FeedbackMessage(req *request.MessageFeedback) error

FeedbackMessage mocks base method.

func (*MockConversationService) FindById

FindById mocks base method.

func (*MockConversationService) FindConversations

func (m *MockConversationService) FindConversations(username string, req *request.ConversationList) ([]*models.Conversation, error)

FindConversations mocks base method.

func (*MockConversationService) RunBase

func (m *MockConversationService) RunBase(prompt string) (string, error)

RunBase mocks base method.

func (*MockConversationService) RunConversation

func (m *MockConversationService) RunConversation(username string, req *request.ConversationRun, callback openaiclient.Callback) (*models.Message, error)

RunConversation mocks base method.

func (*MockConversationService) RunConversationWS

func (m *MockConversationService) RunConversationWS(command, prompt string, buffer *memory.Buffer, callback openaiclient.Callback) error

RunConversationWS mocks base method.

type MockConversationServiceMockRecorder

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

MockConversationServiceMockRecorder is the mock recorder for MockConversationService.

func (*MockConversationServiceMockRecorder) DeleteByIds

func (mr *MockConversationServiceMockRecorder) DeleteByIds(ids interface{}) *gomock.Call

DeleteByIds indicates an expected call of DeleteByIds.

func (*MockConversationServiceMockRecorder) FeedbackMessage

func (mr *MockConversationServiceMockRecorder) FeedbackMessage(req interface{}) *gomock.Call

FeedbackMessage indicates an expected call of FeedbackMessage.

func (*MockConversationServiceMockRecorder) FindById

func (mr *MockConversationServiceMockRecorder) FindById(id interface{}) *gomock.Call

FindById indicates an expected call of FindById.

func (*MockConversationServiceMockRecorder) FindConversations

func (mr *MockConversationServiceMockRecorder) FindConversations(username, req interface{}) *gomock.Call

FindConversations indicates an expected call of FindConversations.

func (*MockConversationServiceMockRecorder) RunBase

func (mr *MockConversationServiceMockRecorder) RunBase(prompt interface{}) *gomock.Call

RunBase indicates an expected call of RunBase.

func (*MockConversationServiceMockRecorder) RunConversation

func (mr *MockConversationServiceMockRecorder) RunConversation(username, req, callback interface{}) *gomock.Call

RunConversation indicates an expected call of RunConversation.

func (*MockConversationServiceMockRecorder) RunConversationWS

func (mr *MockConversationServiceMockRecorder) RunConversationWS(command, prompt, buffer, callback interface{}) *gomock.Call

RunConversationWS indicates an expected call of RunConversationWS.

type MockUserService

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

MockUserService is a mock of UserService interface.

func NewMockUserService

func NewMockUserService(ctrl *gomock.Controller) *MockUserService

NewMockUserService creates a new mock instance.

func (*MockUserService) AuthByUserAndPassword

func (m *MockUserService) AuthByUserAndPassword(username, password string) bool

AuthByUserAndPassword mocks base method.

func (*MockUserService) CreateUser

func (m *MockUserService) CreateUser(req *request.UserCreate) error

CreateUser mocks base method.

func (*MockUserService) EXPECT

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

func (*MockUserService) FindAllUsers

func (m *MockUserService) FindAllUsers(req *request.UserList) ([]*models.User, error)

FindAllUsers mocks base method.

func (*MockUserService) FindUserByName

func (m *MockUserService) FindUserByName(username string) (*models.User, error)

FindUserByName mocks base method.

type MockUserServiceMockRecorder

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

MockUserServiceMockRecorder is the mock recorder for MockUserService.

func (*MockUserServiceMockRecorder) AuthByUserAndPassword

func (mr *MockUserServiceMockRecorder) AuthByUserAndPassword(username, password interface{}) *gomock.Call

AuthByUserAndPassword indicates an expected call of AuthByUserAndPassword.

func (*MockUserServiceMockRecorder) CreateUser

func (mr *MockUserServiceMockRecorder) CreateUser(req interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUserServiceMockRecorder) FindAllUsers

func (mr *MockUserServiceMockRecorder) FindAllUsers(req interface{}) *gomock.Call

FindAllUsers indicates an expected call of FindAllUsers.

func (*MockUserServiceMockRecorder) FindUserByName

func (mr *MockUserServiceMockRecorder) FindUserByName(username interface{}) *gomock.Call

FindUserByName indicates an expected call of FindUserByName.

Jump to

Keyboard shortcuts

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