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.
Index ¶
- type MockIChatService
- func (m *MockIChatService) Create(userId int, chat models.ChatFromRequest) (*models.Chat, utils.HttpError)
- func (m *MockIChatService) Delete(userId, chatId int) (*models.Chat, utils.HttpError)
- func (m *MockIChatService) EXPECT() *MockIChatServiceMockRecorder
- func (m *MockIChatService) GetOne(userId, chatId int) (*models.Chat, utils.HttpError)
- func (m *MockIChatService) GetUserChats(userId int) ([]models.Chat, utils.HttpError)
- func (m *MockIChatService) Update(userId int, chat models.Chat) (*models.Chat, utils.HttpError)
- type MockIChatServiceMockRecorder
- func (mr *MockIChatServiceMockRecorder) Create(userId, chat interface{}) *gomock.Call
- func (mr *MockIChatServiceMockRecorder) Delete(userId, chatId interface{}) *gomock.Call
- func (mr *MockIChatServiceMockRecorder) GetOne(userId, chatId interface{}) *gomock.Call
- func (mr *MockIChatServiceMockRecorder) GetUserChats(userId interface{}) *gomock.Call
- func (mr *MockIChatServiceMockRecorder) Update(userId, chat interface{}) *gomock.Call
- type MockIMessageService
- func (m *MockIMessageService) Create(userId int, MessageTDO models.MessageFromRequest) (*models.Message, utils.HttpError)
- func (m *MockIMessageService) Delete(userId int, message models.Message) (*models.Message, utils.HttpError)
- func (m *MockIMessageService) EXPECT() *MockIMessageServiceMockRecorder
- func (m *MockIMessageService) GetChatMessages(userId, chatId, page int) ([]models.Message, utils.HttpError)
- func (m *MockIMessageService) GetOne(userId, messageId int) (*models.Message, utils.HttpError)
- func (m *MockIMessageService) Update(userId int, message models.Message) (*models.Message, utils.HttpError)
- type MockIMessageServiceMockRecorder
- func (mr *MockIMessageServiceMockRecorder) Create(userId, MessageTDO interface{}) *gomock.Call
- func (mr *MockIMessageServiceMockRecorder) Delete(userId, message interface{}) *gomock.Call
- func (mr *MockIMessageServiceMockRecorder) GetChatMessages(userId, chatId, page interface{}) *gomock.Call
- func (mr *MockIMessageServiceMockRecorder) GetOne(userId, messageId interface{}) *gomock.Call
- func (mr *MockIMessageServiceMockRecorder) Update(userId, message interface{}) *gomock.Call
- type MockIParticipantService
- func (m *MockIParticipantService) Create(userId int, participant models.Participant) (*models.Participant, utils.HttpError)
- func (m *MockIParticipantService) Delete(userId int, participant models.Participant) (*models.Participant, utils.HttpError)
- func (m *MockIParticipantService) EXPECT() *MockIParticipantServiceMockRecorder
- func (m *MockIParticipantService) GetChatUsers(userId, chatId int) ([]models.ChatUser, utils.HttpError)
- func (m *MockIParticipantService) Update(userId int, participant models.Participant) (*models.Participant, utils.HttpError)
- func (m *MockIParticipantService) UserInChat(userId, chatId int) (bool, error)
- type MockIParticipantServiceMockRecorder
- func (mr *MockIParticipantServiceMockRecorder) Create(userId, participant interface{}) *gomock.Call
- func (mr *MockIParticipantServiceMockRecorder) Delete(userId, participant interface{}) *gomock.Call
- func (mr *MockIParticipantServiceMockRecorder) GetChatUsers(userId, chatId interface{}) *gomock.Call
- func (mr *MockIParticipantServiceMockRecorder) Update(userId, participant interface{}) *gomock.Call
- func (mr *MockIParticipantServiceMockRecorder) UserInChat(userId, chatId interface{}) *gomock.Call
- type MockIUserService
- func (m *MockIUserService) Delete(userId int, user models.User) (*models.User, utils.HttpError)
- func (m *MockIUserService) EXPECT() *MockIUserServiceMockRecorder
- func (m *MockIUserService) GetOne(userId int) (*models.User, utils.HttpError)
- func (m *MockIUserService) Update(userId int, user models.User) (*models.User, utils.HttpError)
- type MockIUserServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIChatService ¶
type MockIChatService struct {
// contains filtered or unexported fields
}
MockIChatService is a mock of IChatService interface.
func NewMockIChatService ¶
func NewMockIChatService(ctrl *gomock.Controller) *MockIChatService
NewMockIChatService creates a new mock instance.
func (*MockIChatService) Create ¶
func (m *MockIChatService) Create(userId int, chat models.ChatFromRequest) (*models.Chat, utils.HttpError)
Create mocks base method.
func (*MockIChatService) EXPECT ¶
func (m *MockIChatService) EXPECT() *MockIChatServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIChatService) GetUserChats ¶
GetUserChats mocks base method.
type MockIChatServiceMockRecorder ¶
type MockIChatServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIChatServiceMockRecorder is the mock recorder for MockIChatService.
func (*MockIChatServiceMockRecorder) Create ¶
func (mr *MockIChatServiceMockRecorder) Create(userId, chat interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIChatServiceMockRecorder) Delete ¶
func (mr *MockIChatServiceMockRecorder) Delete(userId, chatId interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIChatServiceMockRecorder) GetOne ¶
func (mr *MockIChatServiceMockRecorder) GetOne(userId, chatId interface{}) *gomock.Call
GetOne indicates an expected call of GetOne.
func (*MockIChatServiceMockRecorder) GetUserChats ¶
func (mr *MockIChatServiceMockRecorder) GetUserChats(userId interface{}) *gomock.Call
GetUserChats indicates an expected call of GetUserChats.
func (*MockIChatServiceMockRecorder) Update ¶
func (mr *MockIChatServiceMockRecorder) Update(userId, chat interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockIMessageService ¶
type MockIMessageService struct {
// contains filtered or unexported fields
}
MockIMessageService is a mock of IMessageService interface.
func NewMockIMessageService ¶
func NewMockIMessageService(ctrl *gomock.Controller) *MockIMessageService
NewMockIMessageService creates a new mock instance.
func (*MockIMessageService) Create ¶
func (m *MockIMessageService) Create(userId int, MessageTDO models.MessageFromRequest) (*models.Message, utils.HttpError)
Create mocks base method.
func (*MockIMessageService) Delete ¶
func (m *MockIMessageService) Delete(userId int, message models.Message) (*models.Message, utils.HttpError)
Delete mocks base method.
func (*MockIMessageService) EXPECT ¶
func (m *MockIMessageService) EXPECT() *MockIMessageServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIMessageService) GetChatMessages ¶
func (m *MockIMessageService) GetChatMessages(userId, chatId, page int) ([]models.Message, utils.HttpError)
GetChatMessages mocks base method.
type MockIMessageServiceMockRecorder ¶
type MockIMessageServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIMessageServiceMockRecorder is the mock recorder for MockIMessageService.
func (*MockIMessageServiceMockRecorder) Create ¶
func (mr *MockIMessageServiceMockRecorder) Create(userId, MessageTDO interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIMessageServiceMockRecorder) Delete ¶
func (mr *MockIMessageServiceMockRecorder) Delete(userId, message interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIMessageServiceMockRecorder) GetChatMessages ¶
func (mr *MockIMessageServiceMockRecorder) GetChatMessages(userId, chatId, page interface{}) *gomock.Call
GetChatMessages indicates an expected call of GetChatMessages.
func (*MockIMessageServiceMockRecorder) GetOne ¶
func (mr *MockIMessageServiceMockRecorder) GetOne(userId, messageId interface{}) *gomock.Call
GetOne indicates an expected call of GetOne.
func (*MockIMessageServiceMockRecorder) Update ¶
func (mr *MockIMessageServiceMockRecorder) Update(userId, message interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockIParticipantService ¶
type MockIParticipantService struct {
// contains filtered or unexported fields
}
MockIParticipantService is a mock of IParticipantService interface.
func NewMockIParticipantService ¶
func NewMockIParticipantService(ctrl *gomock.Controller) *MockIParticipantService
NewMockIParticipantService creates a new mock instance.
func (*MockIParticipantService) Create ¶
func (m *MockIParticipantService) Create(userId int, participant models.Participant) (*models.Participant, utils.HttpError)
Create mocks base method.
func (*MockIParticipantService) Delete ¶
func (m *MockIParticipantService) Delete(userId int, participant models.Participant) (*models.Participant, utils.HttpError)
Delete mocks base method.
func (*MockIParticipantService) EXPECT ¶
func (m *MockIParticipantService) EXPECT() *MockIParticipantServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIParticipantService) GetChatUsers ¶
func (m *MockIParticipantService) GetChatUsers(userId, chatId int) ([]models.ChatUser, utils.HttpError)
GetChatUsers mocks base method.
func (*MockIParticipantService) Update ¶
func (m *MockIParticipantService) Update(userId int, participant models.Participant) (*models.Participant, utils.HttpError)
Update mocks base method.
func (*MockIParticipantService) UserInChat ¶
func (m *MockIParticipantService) UserInChat(userId, chatId int) (bool, error)
UserInChat mocks base method.
type MockIParticipantServiceMockRecorder ¶
type MockIParticipantServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIParticipantServiceMockRecorder is the mock recorder for MockIParticipantService.
func (*MockIParticipantServiceMockRecorder) Create ¶
func (mr *MockIParticipantServiceMockRecorder) Create(userId, participant interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIParticipantServiceMockRecorder) Delete ¶
func (mr *MockIParticipantServiceMockRecorder) Delete(userId, participant interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIParticipantServiceMockRecorder) GetChatUsers ¶
func (mr *MockIParticipantServiceMockRecorder) GetChatUsers(userId, chatId interface{}) *gomock.Call
GetChatUsers indicates an expected call of GetChatUsers.
func (*MockIParticipantServiceMockRecorder) Update ¶
func (mr *MockIParticipantServiceMockRecorder) Update(userId, participant interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockIParticipantServiceMockRecorder) UserInChat ¶
func (mr *MockIParticipantServiceMockRecorder) UserInChat(userId, chatId interface{}) *gomock.Call
UserInChat indicates an expected call of UserInChat.
type MockIUserService ¶
type MockIUserService struct {
// contains filtered or unexported fields
}
MockIUserService is a mock of IUserService interface.
func NewMockIUserService ¶
func NewMockIUserService(ctrl *gomock.Controller) *MockIUserService
NewMockIUserService creates a new mock instance.
func (*MockIUserService) EXPECT ¶
func (m *MockIUserService) EXPECT() *MockIUserServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIUserServiceMockRecorder ¶
type MockIUserServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIUserServiceMockRecorder is the mock recorder for MockIUserService.
func (*MockIUserServiceMockRecorder) Delete ¶
func (mr *MockIUserServiceMockRecorder) Delete(userId, user interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIUserServiceMockRecorder) GetOne ¶
func (mr *MockIUserServiceMockRecorder) GetOne(userId interface{}) *gomock.Call
GetOne indicates an expected call of GetOne.
func (*MockIUserServiceMockRecorder) Update ¶
func (mr *MockIUserServiceMockRecorder) Update(userId, user interface{}) *gomock.Call
Update indicates an expected call of Update.