Documentation ¶
Overview ¶
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.
Index ¶
- type MockConversationService
- func (m *MockConversationService) DeleteByIds(ids []uuid.UUID) error
- func (m *MockConversationService) EXPECT() *MockConversationServiceMockRecorder
- func (m *MockConversationService) FeedbackMessage(req *request.MessageFeedback) error
- func (m *MockConversationService) FindById(id string) (*models.Conversation, error)
- func (m *MockConversationService) FindConversations(username string, req *request.ConversationList) ([]*models.Conversation, error)
- func (m *MockConversationService) RunBase(prompt string) (string, error)
- func (m *MockConversationService) RunConversation(username string, req *request.ConversationRun, callback openaiclient.Callback) (*models.Message, error)
- func (m *MockConversationService) RunConversationWS(command, prompt string, buffer *memory.Buffer, callback openaiclient.Callback) error
- type MockConversationServiceMockRecorder
- func (mr *MockConversationServiceMockRecorder) DeleteByIds(ids interface{}) *gomock.Call
- func (mr *MockConversationServiceMockRecorder) FeedbackMessage(req interface{}) *gomock.Call
- func (mr *MockConversationServiceMockRecorder) FindById(id interface{}) *gomock.Call
- func (mr *MockConversationServiceMockRecorder) FindConversations(username, req interface{}) *gomock.Call
- func (mr *MockConversationServiceMockRecorder) RunBase(prompt interface{}) *gomock.Call
- func (mr *MockConversationServiceMockRecorder) RunConversation(username, req, callback interface{}) *gomock.Call
- func (mr *MockConversationServiceMockRecorder) RunConversationWS(command, prompt, buffer, callback interface{}) *gomock.Call
- type MockUserService
- func (m *MockUserService) AuthByUserAndPassword(username, password string) bool
- func (m *MockUserService) CreateUser(req *request.UserCreate) error
- func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
- func (m *MockUserService) FindAllUsers(req *request.UserList) ([]*models.User, error)
- func (m *MockUserService) FindUserByName(username string) (*models.User, error)
- type MockUserServiceMockRecorder
- func (mr *MockUserServiceMockRecorder) AuthByUserAndPassword(username, password interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) CreateUser(req interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) FindAllUsers(req interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) FindUserByName(username interface{}) *gomock.Call
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 ¶
func (m *MockConversationService) EXPECT() *MockConversationServiceMockRecorder
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 ¶
func (m *MockConversationService) FindById(id string) (*models.Conversation, error)
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 ¶
func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserService) FindAllUsers ¶
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.