Documentation
¶
Index ¶
- type QueueRepo
- type QueueRepo_Add_Call
- type QueueRepo_Expecter
- type StorageService
- func (_m *StorageService) DeleteAnswerMessageId(dstChatId int64, tmpMessageId int64)
- func (_m *StorageService) DeleteCopiedMessageIds(chatId int64, messageId int64)
- func (_m *StorageService) DeleteNewMessageId(chatId int64, tmpMessageId int64)
- func (_m *StorageService) DeleteTmpMessageId(chatId int64, newMessageId int64)
- func (_m *StorageService) EXPECT() *StorageService_Expecter
- func (_m *StorageService) GetCopiedMessageIds(chatId int64, messageId int64) []string
- func (_m *StorageService) GetNewMessageId(chatId int64, tmpMessageId int64) int64
- type StorageService_DeleteAnswerMessageId_Call
- func (_c *StorageService_DeleteAnswerMessageId_Call) Return() *StorageService_DeleteAnswerMessageId_Call
- func (_c *StorageService_DeleteAnswerMessageId_Call) Run(run func(dstChatId int64, tmpMessageId int64)) *StorageService_DeleteAnswerMessageId_Call
- func (_c *StorageService_DeleteAnswerMessageId_Call) RunAndReturn(run func(int64, int64)) *StorageService_DeleteAnswerMessageId_Call
- type StorageService_DeleteCopiedMessageIds_Call
- func (_c *StorageService_DeleteCopiedMessageIds_Call) Return() *StorageService_DeleteCopiedMessageIds_Call
- func (_c *StorageService_DeleteCopiedMessageIds_Call) Run(run func(chatId int64, messageId int64)) *StorageService_DeleteCopiedMessageIds_Call
- func (_c *StorageService_DeleteCopiedMessageIds_Call) RunAndReturn(run func(int64, int64)) *StorageService_DeleteCopiedMessageIds_Call
- type StorageService_DeleteNewMessageId_Call
- func (_c *StorageService_DeleteNewMessageId_Call) Return() *StorageService_DeleteNewMessageId_Call
- func (_c *StorageService_DeleteNewMessageId_Call) Run(run func(chatId int64, tmpMessageId int64)) *StorageService_DeleteNewMessageId_Call
- func (_c *StorageService_DeleteNewMessageId_Call) RunAndReturn(run func(int64, int64)) *StorageService_DeleteNewMessageId_Call
- type StorageService_DeleteTmpMessageId_Call
- func (_c *StorageService_DeleteTmpMessageId_Call) Return() *StorageService_DeleteTmpMessageId_Call
- func (_c *StorageService_DeleteTmpMessageId_Call) Run(run func(chatId int64, newMessageId int64)) *StorageService_DeleteTmpMessageId_Call
- func (_c *StorageService_DeleteTmpMessageId_Call) RunAndReturn(run func(int64, int64)) *StorageService_DeleteTmpMessageId_Call
- type StorageService_Expecter
- func (_e *StorageService_Expecter) DeleteAnswerMessageId(dstChatId interface{}, tmpMessageId interface{}) *StorageService_DeleteAnswerMessageId_Call
- func (_e *StorageService_Expecter) DeleteCopiedMessageIds(chatId interface{}, messageId interface{}) *StorageService_DeleteCopiedMessageIds_Call
- func (_e *StorageService_Expecter) DeleteNewMessageId(chatId interface{}, tmpMessageId interface{}) *StorageService_DeleteNewMessageId_Call
- func (_e *StorageService_Expecter) DeleteTmpMessageId(chatId interface{}, newMessageId interface{}) *StorageService_DeleteTmpMessageId_Call
- func (_e *StorageService_Expecter) GetCopiedMessageIds(chatId interface{}, messageId interface{}) *StorageService_GetCopiedMessageIds_Call
- func (_e *StorageService_Expecter) GetNewMessageId(chatId interface{}, tmpMessageId interface{}) *StorageService_GetNewMessageId_Call
- type StorageService_GetCopiedMessageIds_Call
- func (_c *StorageService_GetCopiedMessageIds_Call) Return(_a0 []string) *StorageService_GetCopiedMessageIds_Call
- func (_c *StorageService_GetCopiedMessageIds_Call) Run(run func(chatId int64, messageId int64)) *StorageService_GetCopiedMessageIds_Call
- func (_c *StorageService_GetCopiedMessageIds_Call) RunAndReturn(run func(int64, int64) []string) *StorageService_GetCopiedMessageIds_Call
- type StorageService_GetNewMessageId_Call
- func (_c *StorageService_GetNewMessageId_Call) Return(_a0 int64) *StorageService_GetNewMessageId_Call
- func (_c *StorageService_GetNewMessageId_Call) Run(run func(chatId int64, tmpMessageId int64)) *StorageService_GetNewMessageId_Call
- func (_c *StorageService_GetNewMessageId_Call) RunAndReturn(run func(int64, int64) int64) *StorageService_GetNewMessageId_Call
- type TelegramRepo
- type TelegramRepo_DeleteMessages_Call
- func (_c *TelegramRepo_DeleteMessages_Call) Return(_a0 *client.Ok, _a1 error) *TelegramRepo_DeleteMessages_Call
- func (_c *TelegramRepo_DeleteMessages_Call) Run(run func(_a0 *client.DeleteMessagesRequest)) *TelegramRepo_DeleteMessages_Call
- func (_c *TelegramRepo_DeleteMessages_Call) RunAndReturn(run func(*client.DeleteMessagesRequest) (*client.Ok, error)) *TelegramRepo_DeleteMessages_Call
- type TelegramRepo_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueRepo ¶
QueueRepo is an autogenerated mock type for the queueRepo type
func NewQueueRepo ¶
NewQueueRepo creates a new instance of QueueRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*QueueRepo) Add ¶
func (_m *QueueRepo) Add(fn func())
Add provides a mock function with given fields: fn
func (*QueueRepo) EXPECT ¶
func (_m *QueueRepo) EXPECT() *QueueRepo_Expecter
type QueueRepo_Add_Call ¶
QueueRepo_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*QueueRepo_Add_Call) Return ¶
func (_c *QueueRepo_Add_Call) Return() *QueueRepo_Add_Call
func (*QueueRepo_Add_Call) Run ¶
func (_c *QueueRepo_Add_Call) Run(run func(fn func())) *QueueRepo_Add_Call
func (*QueueRepo_Add_Call) RunAndReturn ¶
func (_c *QueueRepo_Add_Call) RunAndReturn(run func(func())) *QueueRepo_Add_Call
type QueueRepo_Expecter ¶
type QueueRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*QueueRepo_Expecter) Add ¶
func (_e *QueueRepo_Expecter) Add(fn interface{}) *QueueRepo_Add_Call
Add is a helper method to define mock.On call
- fn func()
type StorageService ¶
StorageService is an autogenerated mock type for the storageService type
func NewStorageService ¶
func NewStorageService(t interface {
mock.TestingT
Cleanup(func())
}) *StorageService
NewStorageService creates a new instance of StorageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StorageService) DeleteAnswerMessageId ¶
func (_m *StorageService) DeleteAnswerMessageId(dstChatId int64, tmpMessageId int64)
DeleteAnswerMessageId provides a mock function with given fields: dstChatId, tmpMessageId
func (*StorageService) DeleteCopiedMessageIds ¶
func (_m *StorageService) DeleteCopiedMessageIds(chatId int64, messageId int64)
DeleteCopiedMessageIds provides a mock function with given fields: chatId, messageId
func (*StorageService) DeleteNewMessageId ¶
func (_m *StorageService) DeleteNewMessageId(chatId int64, tmpMessageId int64)
DeleteNewMessageId provides a mock function with given fields: chatId, tmpMessageId
func (*StorageService) DeleteTmpMessageId ¶
func (_m *StorageService) DeleteTmpMessageId(chatId int64, newMessageId int64)
DeleteTmpMessageId provides a mock function with given fields: chatId, newMessageId
func (*StorageService) EXPECT ¶
func (_m *StorageService) EXPECT() *StorageService_Expecter
func (*StorageService) GetCopiedMessageIds ¶
func (_m *StorageService) GetCopiedMessageIds(chatId int64, messageId int64) []string
GetCopiedMessageIds provides a mock function with given fields: chatId, messageId
func (*StorageService) GetNewMessageId ¶
func (_m *StorageService) GetNewMessageId(chatId int64, tmpMessageId int64) int64
GetNewMessageId provides a mock function with given fields: chatId, tmpMessageId
type StorageService_DeleteAnswerMessageId_Call ¶
StorageService_DeleteAnswerMessageId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAnswerMessageId'
func (*StorageService_DeleteAnswerMessageId_Call) Return ¶
func (_c *StorageService_DeleteAnswerMessageId_Call) Return() *StorageService_DeleteAnswerMessageId_Call
func (*StorageService_DeleteAnswerMessageId_Call) Run ¶
func (_c *StorageService_DeleteAnswerMessageId_Call) Run(run func(dstChatId int64, tmpMessageId int64)) *StorageService_DeleteAnswerMessageId_Call
func (*StorageService_DeleteAnswerMessageId_Call) RunAndReturn ¶
func (_c *StorageService_DeleteAnswerMessageId_Call) RunAndReturn(run func(int64, int64)) *StorageService_DeleteAnswerMessageId_Call
type StorageService_DeleteCopiedMessageIds_Call ¶
StorageService_DeleteCopiedMessageIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCopiedMessageIds'
func (*StorageService_DeleteCopiedMessageIds_Call) Return ¶
func (_c *StorageService_DeleteCopiedMessageIds_Call) Return() *StorageService_DeleteCopiedMessageIds_Call
func (*StorageService_DeleteCopiedMessageIds_Call) Run ¶
func (_c *StorageService_DeleteCopiedMessageIds_Call) Run(run func(chatId int64, messageId int64)) *StorageService_DeleteCopiedMessageIds_Call
func (*StorageService_DeleteCopiedMessageIds_Call) RunAndReturn ¶
func (_c *StorageService_DeleteCopiedMessageIds_Call) RunAndReturn(run func(int64, int64)) *StorageService_DeleteCopiedMessageIds_Call
type StorageService_DeleteNewMessageId_Call ¶
StorageService_DeleteNewMessageId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteNewMessageId'
func (*StorageService_DeleteNewMessageId_Call) Return ¶
func (_c *StorageService_DeleteNewMessageId_Call) Return() *StorageService_DeleteNewMessageId_Call
func (*StorageService_DeleteNewMessageId_Call) Run ¶
func (_c *StorageService_DeleteNewMessageId_Call) Run(run func(chatId int64, tmpMessageId int64)) *StorageService_DeleteNewMessageId_Call
func (*StorageService_DeleteNewMessageId_Call) RunAndReturn ¶
func (_c *StorageService_DeleteNewMessageId_Call) RunAndReturn(run func(int64, int64)) *StorageService_DeleteNewMessageId_Call
type StorageService_DeleteTmpMessageId_Call ¶
StorageService_DeleteTmpMessageId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTmpMessageId'
func (*StorageService_DeleteTmpMessageId_Call) Return ¶
func (_c *StorageService_DeleteTmpMessageId_Call) Return() *StorageService_DeleteTmpMessageId_Call
func (*StorageService_DeleteTmpMessageId_Call) Run ¶
func (_c *StorageService_DeleteTmpMessageId_Call) Run(run func(chatId int64, newMessageId int64)) *StorageService_DeleteTmpMessageId_Call
func (*StorageService_DeleteTmpMessageId_Call) RunAndReturn ¶
func (_c *StorageService_DeleteTmpMessageId_Call) RunAndReturn(run func(int64, int64)) *StorageService_DeleteTmpMessageId_Call
type StorageService_Expecter ¶
type StorageService_Expecter struct {
// contains filtered or unexported fields
}
func (*StorageService_Expecter) DeleteAnswerMessageId ¶
func (_e *StorageService_Expecter) DeleteAnswerMessageId(dstChatId interface{}, tmpMessageId interface{}) *StorageService_DeleteAnswerMessageId_Call
DeleteAnswerMessageId is a helper method to define mock.On call
- dstChatId int64
- tmpMessageId int64
func (*StorageService_Expecter) DeleteCopiedMessageIds ¶
func (_e *StorageService_Expecter) DeleteCopiedMessageIds(chatId interface{}, messageId interface{}) *StorageService_DeleteCopiedMessageIds_Call
DeleteCopiedMessageIds is a helper method to define mock.On call
- chatId int64
- messageId int64
func (*StorageService_Expecter) DeleteNewMessageId ¶
func (_e *StorageService_Expecter) DeleteNewMessageId(chatId interface{}, tmpMessageId interface{}) *StorageService_DeleteNewMessageId_Call
DeleteNewMessageId is a helper method to define mock.On call
- chatId int64
- tmpMessageId int64
func (*StorageService_Expecter) DeleteTmpMessageId ¶
func (_e *StorageService_Expecter) DeleteTmpMessageId(chatId interface{}, newMessageId interface{}) *StorageService_DeleteTmpMessageId_Call
DeleteTmpMessageId is a helper method to define mock.On call
- chatId int64
- newMessageId int64
func (*StorageService_Expecter) GetCopiedMessageIds ¶
func (_e *StorageService_Expecter) GetCopiedMessageIds(chatId interface{}, messageId interface{}) *StorageService_GetCopiedMessageIds_Call
GetCopiedMessageIds is a helper method to define mock.On call
- chatId int64
- messageId int64
func (*StorageService_Expecter) GetNewMessageId ¶
func (_e *StorageService_Expecter) GetNewMessageId(chatId interface{}, tmpMessageId interface{}) *StorageService_GetNewMessageId_Call
GetNewMessageId is a helper method to define mock.On call
- chatId int64
- tmpMessageId int64
type StorageService_GetCopiedMessageIds_Call ¶
StorageService_GetCopiedMessageIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCopiedMessageIds'
func (*StorageService_GetCopiedMessageIds_Call) Return ¶
func (_c *StorageService_GetCopiedMessageIds_Call) Return(_a0 []string) *StorageService_GetCopiedMessageIds_Call
func (*StorageService_GetCopiedMessageIds_Call) Run ¶
func (_c *StorageService_GetCopiedMessageIds_Call) Run(run func(chatId int64, messageId int64)) *StorageService_GetCopiedMessageIds_Call
func (*StorageService_GetCopiedMessageIds_Call) RunAndReturn ¶
func (_c *StorageService_GetCopiedMessageIds_Call) RunAndReturn(run func(int64, int64) []string) *StorageService_GetCopiedMessageIds_Call
type StorageService_GetNewMessageId_Call ¶
StorageService_GetNewMessageId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNewMessageId'
func (*StorageService_GetNewMessageId_Call) Return ¶
func (_c *StorageService_GetNewMessageId_Call) Return(_a0 int64) *StorageService_GetNewMessageId_Call
func (*StorageService_GetNewMessageId_Call) Run ¶
func (_c *StorageService_GetNewMessageId_Call) Run(run func(chatId int64, tmpMessageId int64)) *StorageService_GetNewMessageId_Call
func (*StorageService_GetNewMessageId_Call) RunAndReturn ¶
func (_c *StorageService_GetNewMessageId_Call) RunAndReturn(run func(int64, int64) int64) *StorageService_GetNewMessageId_Call
type TelegramRepo ¶
TelegramRepo is an autogenerated mock type for the telegramRepo type
func NewTelegramRepo ¶
func NewTelegramRepo(t interface {
mock.TestingT
Cleanup(func())
}) *TelegramRepo
NewTelegramRepo creates a new instance of TelegramRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TelegramRepo) DeleteMessages ¶
func (_m *TelegramRepo) DeleteMessages(_a0 *client.DeleteMessagesRequest) (*client.Ok, error)
DeleteMessages provides a mock function with given fields: _a0
func (*TelegramRepo) EXPECT ¶
func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter
type TelegramRepo_DeleteMessages_Call ¶
TelegramRepo_DeleteMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteMessages'
func (*TelegramRepo_DeleteMessages_Call) Return ¶
func (_c *TelegramRepo_DeleteMessages_Call) Return(_a0 *client.Ok, _a1 error) *TelegramRepo_DeleteMessages_Call
func (*TelegramRepo_DeleteMessages_Call) Run ¶
func (_c *TelegramRepo_DeleteMessages_Call) Run(run func(_a0 *client.DeleteMessagesRequest)) *TelegramRepo_DeleteMessages_Call
func (*TelegramRepo_DeleteMessages_Call) RunAndReturn ¶
func (_c *TelegramRepo_DeleteMessages_Call) RunAndReturn(run func(*client.DeleteMessagesRequest) (*client.Ok, error)) *TelegramRepo_DeleteMessages_Call
type TelegramRepo_Expecter ¶
type TelegramRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*TelegramRepo_Expecter) DeleteMessages ¶
func (_e *TelegramRepo_Expecter) DeleteMessages(_a0 interface{}) *TelegramRepo_DeleteMessages_Call
DeleteMessages is a helper method to define mock.On call
- _a0 *client.DeleteMessagesRequest