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 MockIChatStorer
- func (m *MockIChatStorer) Begin() (*sql.Tx, error)
- func (m *MockIChatStorer) Create(dto models.ChatDTO) (*models.Chat, error)
- func (m *MockIChatStorer) CreateInTx(tx *sql.Tx, dto models.ChatDTO) (*models.Chat, error)
- func (m *MockIChatStorer) Delete(id int) (*models.Chat, error)
- func (m *MockIChatStorer) EXPECT() *MockIChatStorerMockRecorder
- func (m *MockIChatStorer) GetOne(id int) (*models.Chat, error)
- func (m *MockIChatStorer) GetUserChats(userId int) ([]models.Chat, error)
- func (m *MockIChatStorer) Update(chat models.Chat) (*models.Chat, error)
- type MockIChatStorerMockRecorder
- func (mr *MockIChatStorerMockRecorder) Begin() *gomock.Call
- func (mr *MockIChatStorerMockRecorder) Create(dto interface{}) *gomock.Call
- func (mr *MockIChatStorerMockRecorder) CreateInTx(tx, dto interface{}) *gomock.Call
- func (mr *MockIChatStorerMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockIChatStorerMockRecorder) GetOne(id interface{}) *gomock.Call
- func (mr *MockIChatStorerMockRecorder) GetUserChats(userId interface{}) *gomock.Call
- func (mr *MockIChatStorerMockRecorder) Update(chat interface{}) *gomock.Call
- type MockIMessageStorer
- func (m *MockIMessageStorer) Create(tdo models.MessageDTO) (*models.Message, error)
- func (m *MockIMessageStorer) Delete(id int) (*models.Message, error)
- func (m *MockIMessageStorer) DeleteAll(chatId int) (sql.Result, error)
- func (m *MockIMessageStorer) EXPECT() *MockIMessageStorerMockRecorder
- func (m *MockIMessageStorer) GetChatMessages(chatId, page int) ([]models.Message, error)
- func (m *MockIMessageStorer) GetOne(id int) (*models.Message, error)
- func (m *MockIMessageStorer) Update(message models.Message) (*models.Message, error)
- type MockIMessageStorerMockRecorder
- func (mr *MockIMessageStorerMockRecorder) Create(tdo interface{}) *gomock.Call
- func (mr *MockIMessageStorerMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockIMessageStorerMockRecorder) DeleteAll(chatId interface{}) *gomock.Call
- func (mr *MockIMessageStorerMockRecorder) GetChatMessages(chatId, page interface{}) *gomock.Call
- func (mr *MockIMessageStorerMockRecorder) GetOne(id interface{}) *gomock.Call
- func (mr *MockIMessageStorerMockRecorder) Update(message interface{}) *gomock.Call
- type MockIParticipantStorer
- func (m *MockIParticipantStorer) Create(participant models.Participant) (*models.Participant, error)
- func (m *MockIParticipantStorer) CreateInTx(tx *sql.Tx, participant models.Participant) (*models.Participant, error)
- func (m *MockIParticipantStorer) Delete(participant models.Participant) (*models.Participant, error)
- func (m *MockIParticipantStorer) DeleteAll(chatId int) (sql.Result, error)
- func (m *MockIParticipantStorer) EXPECT() *MockIParticipantStorerMockRecorder
- func (m *MockIParticipantStorer) GetChatUsers(chatId int) ([]models.ChatUser, error)
- func (m *MockIParticipantStorer) GetOne(userId, chatId int) (*models.Participant, error)
- func (m *MockIParticipantStorer) Update(participant models.Participant) (*models.Participant, error)
- type MockIParticipantStorerMockRecorder
- func (mr *MockIParticipantStorerMockRecorder) Create(participant interface{}) *gomock.Call
- func (mr *MockIParticipantStorerMockRecorder) CreateInTx(tx, participant interface{}) *gomock.Call
- func (mr *MockIParticipantStorerMockRecorder) Delete(participant interface{}) *gomock.Call
- func (mr *MockIParticipantStorerMockRecorder) DeleteAll(chatId interface{}) *gomock.Call
- func (mr *MockIParticipantStorerMockRecorder) GetChatUsers(chatId interface{}) *gomock.Call
- func (mr *MockIParticipantStorerMockRecorder) GetOne(userId, chatId interface{}) *gomock.Call
- func (mr *MockIParticipantStorerMockRecorder) Update(participant interface{}) *gomock.Call
- type MockIUserStorer
- type MockIUserStorerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIChatStorer ¶
type MockIChatStorer struct {
// contains filtered or unexported fields
}
MockIChatStorer is a mock of IChatStorer interface.
func NewMockIChatStorer ¶
func NewMockIChatStorer(ctrl *gomock.Controller) *MockIChatStorer
NewMockIChatStorer creates a new mock instance.
func (*MockIChatStorer) Begin ¶
func (m *MockIChatStorer) Begin() (*sql.Tx, error)
Begin mocks base method.
func (*MockIChatStorer) CreateInTx ¶
CreateInTx mocks base method.
func (*MockIChatStorer) Delete ¶
func (m *MockIChatStorer) Delete(id int) (*models.Chat, error)
Delete mocks base method.
func (*MockIChatStorer) EXPECT ¶
func (m *MockIChatStorer) EXPECT() *MockIChatStorerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIChatStorer) GetOne ¶
func (m *MockIChatStorer) GetOne(id int) (*models.Chat, error)
GetOne mocks base method.
func (*MockIChatStorer) GetUserChats ¶
func (m *MockIChatStorer) GetUserChats(userId int) ([]models.Chat, error)
GetUserChats mocks base method.
type MockIChatStorerMockRecorder ¶
type MockIChatStorerMockRecorder struct {
// contains filtered or unexported fields
}
MockIChatStorerMockRecorder is the mock recorder for MockIChatStorer.
func (*MockIChatStorerMockRecorder) Begin ¶
func (mr *MockIChatStorerMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin.
func (*MockIChatStorerMockRecorder) Create ¶
func (mr *MockIChatStorerMockRecorder) Create(dto interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIChatStorerMockRecorder) CreateInTx ¶
func (mr *MockIChatStorerMockRecorder) CreateInTx(tx, dto interface{}) *gomock.Call
CreateInTx indicates an expected call of CreateInTx.
func (*MockIChatStorerMockRecorder) Delete ¶
func (mr *MockIChatStorerMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIChatStorerMockRecorder) GetOne ¶
func (mr *MockIChatStorerMockRecorder) GetOne(id interface{}) *gomock.Call
GetOne indicates an expected call of GetOne.
func (*MockIChatStorerMockRecorder) GetUserChats ¶
func (mr *MockIChatStorerMockRecorder) GetUserChats(userId interface{}) *gomock.Call
GetUserChats indicates an expected call of GetUserChats.
func (*MockIChatStorerMockRecorder) Update ¶
func (mr *MockIChatStorerMockRecorder) Update(chat interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockIMessageStorer ¶
type MockIMessageStorer struct {
// contains filtered or unexported fields
}
MockIMessageStorer is a mock of IMessageStorer interface.
func NewMockIMessageStorer ¶
func NewMockIMessageStorer(ctrl *gomock.Controller) *MockIMessageStorer
NewMockIMessageStorer creates a new mock instance.
func (*MockIMessageStorer) Create ¶
func (m *MockIMessageStorer) Create(tdo models.MessageDTO) (*models.Message, error)
Create mocks base method.
func (*MockIMessageStorer) Delete ¶
func (m *MockIMessageStorer) Delete(id int) (*models.Message, error)
Delete mocks base method.
func (*MockIMessageStorer) DeleteAll ¶
func (m *MockIMessageStorer) DeleteAll(chatId int) (sql.Result, error)
DeleteAll mocks base method.
func (*MockIMessageStorer) EXPECT ¶
func (m *MockIMessageStorer) EXPECT() *MockIMessageStorerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIMessageStorer) GetChatMessages ¶
func (m *MockIMessageStorer) GetChatMessages(chatId, page int) ([]models.Message, error)
GetChatMessages mocks base method.
type MockIMessageStorerMockRecorder ¶
type MockIMessageStorerMockRecorder struct {
// contains filtered or unexported fields
}
MockIMessageStorerMockRecorder is the mock recorder for MockIMessageStorer.
func (*MockIMessageStorerMockRecorder) Create ¶
func (mr *MockIMessageStorerMockRecorder) Create(tdo interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIMessageStorerMockRecorder) Delete ¶
func (mr *MockIMessageStorerMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIMessageStorerMockRecorder) DeleteAll ¶
func (mr *MockIMessageStorerMockRecorder) DeleteAll(chatId interface{}) *gomock.Call
DeleteAll indicates an expected call of DeleteAll.
func (*MockIMessageStorerMockRecorder) GetChatMessages ¶
func (mr *MockIMessageStorerMockRecorder) GetChatMessages(chatId, page interface{}) *gomock.Call
GetChatMessages indicates an expected call of GetChatMessages.
func (*MockIMessageStorerMockRecorder) GetOne ¶
func (mr *MockIMessageStorerMockRecorder) GetOne(id interface{}) *gomock.Call
GetOne indicates an expected call of GetOne.
func (*MockIMessageStorerMockRecorder) Update ¶
func (mr *MockIMessageStorerMockRecorder) Update(message interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockIParticipantStorer ¶
type MockIParticipantStorer struct {
// contains filtered or unexported fields
}
MockIParticipantStorer is a mock of IParticipantStorer interface.
func NewMockIParticipantStorer ¶
func NewMockIParticipantStorer(ctrl *gomock.Controller) *MockIParticipantStorer
NewMockIParticipantStorer creates a new mock instance.
func (*MockIParticipantStorer) Create ¶
func (m *MockIParticipantStorer) Create(participant models.Participant) (*models.Participant, error)
Create mocks base method.
func (*MockIParticipantStorer) CreateInTx ¶
func (m *MockIParticipantStorer) CreateInTx(tx *sql.Tx, participant models.Participant) (*models.Participant, error)
CreateInTx mocks base method.
func (*MockIParticipantStorer) Delete ¶
func (m *MockIParticipantStorer) Delete(participant models.Participant) (*models.Participant, error)
Delete mocks base method.
func (*MockIParticipantStorer) DeleteAll ¶
func (m *MockIParticipantStorer) DeleteAll(chatId int) (sql.Result, error)
DeleteAll mocks base method.
func (*MockIParticipantStorer) EXPECT ¶
func (m *MockIParticipantStorer) EXPECT() *MockIParticipantStorerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIParticipantStorer) GetChatUsers ¶
func (m *MockIParticipantStorer) GetChatUsers(chatId int) ([]models.ChatUser, error)
GetChatUsers mocks base method.
func (*MockIParticipantStorer) GetOne ¶
func (m *MockIParticipantStorer) GetOne(userId, chatId int) (*models.Participant, error)
GetOne mocks base method.
func (*MockIParticipantStorer) Update ¶
func (m *MockIParticipantStorer) Update(participant models.Participant) (*models.Participant, error)
Update mocks base method.
type MockIParticipantStorerMockRecorder ¶
type MockIParticipantStorerMockRecorder struct {
// contains filtered or unexported fields
}
MockIParticipantStorerMockRecorder is the mock recorder for MockIParticipantStorer.
func (*MockIParticipantStorerMockRecorder) Create ¶
func (mr *MockIParticipantStorerMockRecorder) Create(participant interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIParticipantStorerMockRecorder) CreateInTx ¶
func (mr *MockIParticipantStorerMockRecorder) CreateInTx(tx, participant interface{}) *gomock.Call
CreateInTx indicates an expected call of CreateInTx.
func (*MockIParticipantStorerMockRecorder) Delete ¶
func (mr *MockIParticipantStorerMockRecorder) Delete(participant interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIParticipantStorerMockRecorder) DeleteAll ¶
func (mr *MockIParticipantStorerMockRecorder) DeleteAll(chatId interface{}) *gomock.Call
DeleteAll indicates an expected call of DeleteAll.
func (*MockIParticipantStorerMockRecorder) GetChatUsers ¶
func (mr *MockIParticipantStorerMockRecorder) GetChatUsers(chatId interface{}) *gomock.Call
GetChatUsers indicates an expected call of GetChatUsers.
func (*MockIParticipantStorerMockRecorder) GetOne ¶
func (mr *MockIParticipantStorerMockRecorder) GetOne(userId, chatId interface{}) *gomock.Call
GetOne indicates an expected call of GetOne.
func (*MockIParticipantStorerMockRecorder) Update ¶
func (mr *MockIParticipantStorerMockRecorder) Update(participant interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockIUserStorer ¶
type MockIUserStorer struct {
// contains filtered or unexported fields
}
MockIUserStorer is a mock of IUserStorer interface.
func NewMockIUserStorer ¶
func NewMockIUserStorer(ctrl *gomock.Controller) *MockIUserStorer
NewMockIUserStorer creates a new mock instance.
func (*MockIUserStorer) Delete ¶
func (m *MockIUserStorer) Delete(id int) (*models.User, error)
Delete mocks base method.
func (*MockIUserStorer) EXPECT ¶
func (m *MockIUserStorer) EXPECT() *MockIUserStorerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIUserStorerMockRecorder ¶
type MockIUserStorerMockRecorder struct {
// contains filtered or unexported fields
}
MockIUserStorerMockRecorder is the mock recorder for MockIUserStorer.
func (*MockIUserStorerMockRecorder) Delete ¶
func (mr *MockIUserStorerMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIUserStorerMockRecorder) GetOne ¶
func (mr *MockIUserStorerMockRecorder) GetOne(id interface{}) *gomock.Call
GetOne indicates an expected call of GetOne.
func (*MockIUserStorerMockRecorder) Update ¶
func (mr *MockIUserStorerMockRecorder) Update(user interface{}) *gomock.Call
Update indicates an expected call of Update.