Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockbotSender
- type MockbotSenderMockRecorder
- type MockchatGeter
- type MockchatGeterMockRecorder
- type MockchatStorage
- type MockchatStorageMockRecorder
- type MockchatsStorage
- func (m *MockchatsStorage) AddChat(ctx context.Context, chat entities.Chat) (entities.Chat, error)
- func (m *MockchatsStorage) DeleteChatById(ctx context.Context, id int64) error
- func (m *MockchatsStorage) EXPECT() *MockchatsStorageMockRecorder
- func (m *MockchatsStorage) GetChatsByCompanyId(ctx context.Context, id int64) ([]entities.Chat, error)
- type MockchatsStorageMockRecorder
- type MockcompanyStorage
- func (m *MockcompanyStorage) DeleteCompany(ctx context.Context, companyId int64) error
- func (m *MockcompanyStorage) EXPECT() *MockcompanyStorageMockRecorder
- func (m *MockcompanyStorage) GetCompanyByOwnerTelegramId(ctx context.Context, ownerId int64) (entities.Company, error)
- func (m *MockcompanyStorage) UpdateToken(ctx context.Context, companyId int64, token string) error
- type MockcompanyStorageMockRecorder
- func (mr *MockcompanyStorageMockRecorder) DeleteCompany(ctx, companyId interface{}) *gomock.Call
- func (mr *MockcompanyStorageMockRecorder) GetCompanyByOwnerTelegramId(ctx, ownerId interface{}) *gomock.Call
- func (mr *MockcompanyStorageMockRecorder) UpdateToken(ctx, companyId, token interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockbotSender ¶
type MockbotSender struct {
// contains filtered or unexported fields
}
MockbotSender is a mock of botSender interface.
func NewMockbotSender ¶
func NewMockbotSender(ctrl *gomock.Controller) *MockbotSender
NewMockbotSender creates a new mock instance.
func (*MockbotSender) EXPECT ¶
func (m *MockbotSender) EXPECT() *MockbotSenderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockbotSender) SendMessage ¶
SendMessage mocks base method.
type MockbotSenderMockRecorder ¶
type MockbotSenderMockRecorder struct {
// contains filtered or unexported fields
}
MockbotSenderMockRecorder is the mock recorder for MockbotSender.
func (*MockbotSenderMockRecorder) SendMessage ¶
func (mr *MockbotSenderMockRecorder) SendMessage(ctx, msg interface{}) *gomock.Call
SendMessage indicates an expected call of SendMessage.
type MockchatGeter ¶
type MockchatGeter struct {
// contains filtered or unexported fields
}
MockchatGeter is a mock of chatGeter interface.
func NewMockchatGeter ¶
func NewMockchatGeter(ctrl *gomock.Controller) *MockchatGeter
NewMockchatGeter creates a new mock instance.
func (*MockchatGeter) EXPECT ¶
func (m *MockchatGeter) EXPECT() *MockchatGeterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockchatGeter) GetChatsByCompanyToken ¶
func (m *MockchatGeter) GetChatsByCompanyToken(ctx context.Context, t string) ([]entities.Chat, error)
GetChatsByCompanyToken mocks base method.
type MockchatGeterMockRecorder ¶
type MockchatGeterMockRecorder struct {
// contains filtered or unexported fields
}
MockchatGeterMockRecorder is the mock recorder for MockchatGeter.
func (*MockchatGeterMockRecorder) GetChatsByCompanyToken ¶
func (mr *MockchatGeterMockRecorder) GetChatsByCompanyToken(ctx, t interface{}) *gomock.Call
GetChatsByCompanyToken indicates an expected call of GetChatsByCompanyToken.
type MockchatStorage ¶
type MockchatStorage struct {
// contains filtered or unexported fields
}
MockchatStorage is a mock of chatStorage interface.
func NewMockchatStorage ¶
func NewMockchatStorage(ctrl *gomock.Controller) *MockchatStorage
NewMockchatStorage creates a new mock instance.
func (*MockchatStorage) EXPECT ¶
func (m *MockchatStorage) EXPECT() *MockchatStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockchatStorage) GetChatsByCompanyId ¶
func (m *MockchatStorage) GetChatsByCompanyId(ctx context.Context, id int64) ([]entities.Chat, error)
GetChatsByCompanyId mocks base method.
type MockchatStorageMockRecorder ¶
type MockchatStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockchatStorageMockRecorder is the mock recorder for MockchatStorage.
func (*MockchatStorageMockRecorder) GetChatsByCompanyId ¶
func (mr *MockchatStorageMockRecorder) GetChatsByCompanyId(ctx, id interface{}) *gomock.Call
GetChatsByCompanyId indicates an expected call of GetChatsByCompanyId.
type MockchatsStorage ¶
type MockchatsStorage struct {
// contains filtered or unexported fields
}
MockchatsStorage is a mock of chatsStorage interface.
func NewMockchatsStorage ¶
func NewMockchatsStorage(ctrl *gomock.Controller) *MockchatsStorage
NewMockchatsStorage creates a new mock instance.
func (*MockchatsStorage) DeleteChatById ¶
func (m *MockchatsStorage) DeleteChatById(ctx context.Context, id int64) error
DeleteChatById mocks base method.
func (*MockchatsStorage) EXPECT ¶
func (m *MockchatsStorage) EXPECT() *MockchatsStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockchatsStorage) GetChatsByCompanyId ¶
func (m *MockchatsStorage) GetChatsByCompanyId(ctx context.Context, id int64) ([]entities.Chat, error)
GetChatsByCompanyId mocks base method.
type MockchatsStorageMockRecorder ¶
type MockchatsStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockchatsStorageMockRecorder is the mock recorder for MockchatsStorage.
func (*MockchatsStorageMockRecorder) AddChat ¶
func (mr *MockchatsStorageMockRecorder) AddChat(ctx, chat interface{}) *gomock.Call
AddChat indicates an expected call of AddChat.
func (*MockchatsStorageMockRecorder) DeleteChatById ¶
func (mr *MockchatsStorageMockRecorder) DeleteChatById(ctx, id interface{}) *gomock.Call
DeleteChatById indicates an expected call of DeleteChatById.
func (*MockchatsStorageMockRecorder) GetChatsByCompanyId ¶
func (mr *MockchatsStorageMockRecorder) GetChatsByCompanyId(ctx, id interface{}) *gomock.Call
GetChatsByCompanyId indicates an expected call of GetChatsByCompanyId.
type MockcompanyStorage ¶
type MockcompanyStorage struct {
// contains filtered or unexported fields
}
MockcompanyStorage is a mock of companyStorage interface.
func NewMockcompanyStorage ¶
func NewMockcompanyStorage(ctrl *gomock.Controller) *MockcompanyStorage
NewMockcompanyStorage creates a new mock instance.
func (*MockcompanyStorage) DeleteCompany ¶
func (m *MockcompanyStorage) DeleteCompany(ctx context.Context, companyId int64) error
DeleteCompany mocks base method.
func (*MockcompanyStorage) EXPECT ¶
func (m *MockcompanyStorage) EXPECT() *MockcompanyStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockcompanyStorage) GetCompanyByOwnerTelegramId ¶
func (m *MockcompanyStorage) GetCompanyByOwnerTelegramId(ctx context.Context, ownerId int64) (entities.Company, error)
GetCompanyByOwnerTelegramId mocks base method.
func (*MockcompanyStorage) UpdateToken ¶
UpdateToken mocks base method.
type MockcompanyStorageMockRecorder ¶
type MockcompanyStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockcompanyStorageMockRecorder is the mock recorder for MockcompanyStorage.
func (*MockcompanyStorageMockRecorder) DeleteCompany ¶
func (mr *MockcompanyStorageMockRecorder) DeleteCompany(ctx, companyId interface{}) *gomock.Call
DeleteCompany indicates an expected call of DeleteCompany.
func (*MockcompanyStorageMockRecorder) GetCompanyByOwnerTelegramId ¶
func (mr *MockcompanyStorageMockRecorder) GetCompanyByOwnerTelegramId(ctx, ownerId interface{}) *gomock.Call
GetCompanyByOwnerTelegramId indicates an expected call of GetCompanyByOwnerTelegramId.
func (*MockcompanyStorageMockRecorder) UpdateToken ¶
func (mr *MockcompanyStorageMockRecorder) UpdateToken(ctx, companyId, token interface{}) *gomock.Call
UpdateToken indicates an expected call of UpdateToken.