Documentation
¶
Index ¶
- type FiltersModeService
- type FiltersModeService_Expecter
- type FiltersModeService_Map_Call
- func (_c *FiltersModeService_Map_Call) Return(_a0 string) *FiltersModeService_Map_Call
- func (_c *FiltersModeService_Map_Call) Run(run func(formattedText *client.FormattedText, rule *domain.ForwardRule)) *FiltersModeService_Map_Call
- func (_c *FiltersModeService_Map_Call) RunAndReturn(run func(*client.FormattedText, *domain.ForwardRule) string) *FiltersModeService_Map_Call
- type ForwardedToService
- type ForwardedToService_Add_Call
- func (_c *ForwardedToService_Add_Call) Return(_a0 bool) *ForwardedToService_Add_Call
- func (_c *ForwardedToService_Add_Call) Run(run func(forwardedTo map[int64]bool, dstChatId int64)) *ForwardedToService_Add_Call
- func (_c *ForwardedToService_Add_Call) RunAndReturn(run func(map[int64]bool, int64) bool) *ForwardedToService_Add_Call
- type ForwardedToService_Expecter
- type ForwardedToService_Init_Call
- func (_c *ForwardedToService_Init_Call) Return() *ForwardedToService_Init_Call
- func (_c *ForwardedToService_Init_Call) Run(run func(forwardedTo map[int64]bool, dstChatIds []int64)) *ForwardedToService_Init_Call
- func (_c *ForwardedToService_Init_Call) RunAndReturn(run func(map[int64]bool, []int64)) *ForwardedToService_Init_Call
- type ForwarderService
- type ForwarderService_Expecter
- type ForwarderService_ForwardMessages_Call
- func (_c *ForwarderService_ForwardMessages_Call) Return() *ForwarderService_ForwardMessages_Call
- func (_c *ForwarderService_ForwardMessages_Call) Run(run func(messages []*client.Message, filtersMode string, srcChatId int64, ...)) *ForwarderService_ForwardMessages_Call
- func (_c *ForwarderService_ForwardMessages_Call) RunAndReturn(...) *ForwarderService_ForwardMessages_Call
- type MediaAlbumService
- func (_m *MediaAlbumService) AddMessage(key string, message *client.Message) bool
- func (_m *MediaAlbumService) EXPECT() *MediaAlbumService_Expecter
- func (_m *MediaAlbumService) GetKey(forwardRuleId string, MediaAlbumId client.JsonInt64) string
- func (_m *MediaAlbumService) GetLastReceivedDiff(key string) time.Duration
- func (_m *MediaAlbumService) PopMessages(key string) []*client.Message
- type MediaAlbumService_AddMessage_Call
- func (_c *MediaAlbumService_AddMessage_Call) Return(_a0 bool) *MediaAlbumService_AddMessage_Call
- func (_c *MediaAlbumService_AddMessage_Call) Run(run func(key string, message *client.Message)) *MediaAlbumService_AddMessage_Call
- func (_c *MediaAlbumService_AddMessage_Call) RunAndReturn(run func(string, *client.Message) bool) *MediaAlbumService_AddMessage_Call
- type MediaAlbumService_Expecter
- func (_e *MediaAlbumService_Expecter) AddMessage(key interface{}, message interface{}) *MediaAlbumService_AddMessage_Call
- func (_e *MediaAlbumService_Expecter) GetKey(forwardRuleId interface{}, MediaAlbumId interface{}) *MediaAlbumService_GetKey_Call
- func (_e *MediaAlbumService_Expecter) GetLastReceivedDiff(key interface{}) *MediaAlbumService_GetLastReceivedDiff_Call
- func (_e *MediaAlbumService_Expecter) PopMessages(key interface{}) *MediaAlbumService_PopMessages_Call
- type MediaAlbumService_GetKey_Call
- func (_c *MediaAlbumService_GetKey_Call) Return(_a0 string) *MediaAlbumService_GetKey_Call
- func (_c *MediaAlbumService_GetKey_Call) Run(run func(forwardRuleId string, MediaAlbumId client.JsonInt64)) *MediaAlbumService_GetKey_Call
- func (_c *MediaAlbumService_GetKey_Call) RunAndReturn(run func(string, client.JsonInt64) string) *MediaAlbumService_GetKey_Call
- type MediaAlbumService_GetLastReceivedDiff_Call
- func (_c *MediaAlbumService_GetLastReceivedDiff_Call) Return(_a0 time.Duration) *MediaAlbumService_GetLastReceivedDiff_Call
- func (_c *MediaAlbumService_GetLastReceivedDiff_Call) Run(run func(key string)) *MediaAlbumService_GetLastReceivedDiff_Call
- func (_c *MediaAlbumService_GetLastReceivedDiff_Call) RunAndReturn(run func(string) time.Duration) *MediaAlbumService_GetLastReceivedDiff_Call
- type MediaAlbumService_PopMessages_Call
- func (_c *MediaAlbumService_PopMessages_Call) Return(_a0 []*client.Message) *MediaAlbumService_PopMessages_Call
- func (_c *MediaAlbumService_PopMessages_Call) Run(run func(key string)) *MediaAlbumService_PopMessages_Call
- func (_c *MediaAlbumService_PopMessages_Call) RunAndReturn(run func(string) []*client.Message) *MediaAlbumService_PopMessages_Call
- type MessageService
- type MessageService_Expecter
- type MessageService_GetFormattedText_Call
- func (_c *MessageService_GetFormattedText_Call) Return(_a0 *client.FormattedText) *MessageService_GetFormattedText_Call
- func (_c *MessageService_GetFormattedText_Call) Run(run func(message *client.Message)) *MessageService_GetFormattedText_Call
- func (_c *MessageService_GetFormattedText_Call) RunAndReturn(run func(*client.Message) *client.FormattedText) *MessageService_GetFormattedText_Call
- type MessageService_IsSystemMessage_Call
- func (_c *MessageService_IsSystemMessage_Call) Return(_a0 bool) *MessageService_IsSystemMessage_Call
- func (_c *MessageService_IsSystemMessage_Call) Run(run func(message *client.Message)) *MessageService_IsSystemMessage_Call
- func (_c *MessageService_IsSystemMessage_Call) RunAndReturn(run func(*client.Message) bool) *MessageService_IsSystemMessage_Call
- type QueueRepo
- type QueueRepo_Add_Call
- type QueueRepo_Expecter
- type StorageService
- type StorageService_Expecter
- type StorageService_IncrementForwardedMessages_Call
- func (_c *StorageService_IncrementForwardedMessages_Call) Return() *StorageService_IncrementForwardedMessages_Call
- func (_c *StorageService_IncrementForwardedMessages_Call) Run(run func(toChatId int64, date string)) *StorageService_IncrementForwardedMessages_Call
- func (_c *StorageService_IncrementForwardedMessages_Call) RunAndReturn(run func(int64, string)) *StorageService_IncrementForwardedMessages_Call
- type StorageService_IncrementViewedMessages_Call
- func (_c *StorageService_IncrementViewedMessages_Call) Return() *StorageService_IncrementViewedMessages_Call
- func (_c *StorageService_IncrementViewedMessages_Call) Run(run func(toChatId int64, date string)) *StorageService_IncrementViewedMessages_Call
- func (_c *StorageService_IncrementViewedMessages_Call) RunAndReturn(run func(int64, string)) *StorageService_IncrementViewedMessages_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 FiltersModeService ¶
FiltersModeService is an autogenerated mock type for the filtersModeService type
func NewFiltersModeService ¶
func NewFiltersModeService(t interface {
mock.TestingT
Cleanup(func())
}) *FiltersModeService
NewFiltersModeService creates a new instance of FiltersModeService. 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 (*FiltersModeService) EXPECT ¶
func (_m *FiltersModeService) EXPECT() *FiltersModeService_Expecter
func (*FiltersModeService) Map ¶
func (_m *FiltersModeService) Map(formattedText *client.FormattedText, rule *domain.ForwardRule) string
Map provides a mock function with given fields: formattedText, rule
type FiltersModeService_Expecter ¶
type FiltersModeService_Expecter struct {
// contains filtered or unexported fields
}
func (*FiltersModeService_Expecter) Map ¶
func (_e *FiltersModeService_Expecter) Map(formattedText interface{}, rule interface{}) *FiltersModeService_Map_Call
Map is a helper method to define mock.On call
- formattedText *client.FormattedText
- rule *domain.ForwardRule
type FiltersModeService_Map_Call ¶
FiltersModeService_Map_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Map'
func (*FiltersModeService_Map_Call) Return ¶
func (_c *FiltersModeService_Map_Call) Return(_a0 string) *FiltersModeService_Map_Call
func (*FiltersModeService_Map_Call) Run ¶
func (_c *FiltersModeService_Map_Call) Run(run func(formattedText *client.FormattedText, rule *domain.ForwardRule)) *FiltersModeService_Map_Call
func (*FiltersModeService_Map_Call) RunAndReturn ¶
func (_c *FiltersModeService_Map_Call) RunAndReturn(run func(*client.FormattedText, *domain.ForwardRule) string) *FiltersModeService_Map_Call
type ForwardedToService ¶
ForwardedToService is an autogenerated mock type for the forwardedToService type
func NewForwardedToService ¶
func NewForwardedToService(t interface {
mock.TestingT
Cleanup(func())
}) *ForwardedToService
NewForwardedToService creates a new instance of ForwardedToService. 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 (*ForwardedToService) Add ¶
func (_m *ForwardedToService) Add(forwardedTo map[int64]bool, dstChatId int64) bool
Add provides a mock function with given fields: forwardedTo, dstChatId
func (*ForwardedToService) EXPECT ¶
func (_m *ForwardedToService) EXPECT() *ForwardedToService_Expecter
type ForwardedToService_Add_Call ¶
ForwardedToService_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*ForwardedToService_Add_Call) Return ¶
func (_c *ForwardedToService_Add_Call) Return(_a0 bool) *ForwardedToService_Add_Call
func (*ForwardedToService_Add_Call) Run ¶
func (_c *ForwardedToService_Add_Call) Run(run func(forwardedTo map[int64]bool, dstChatId int64)) *ForwardedToService_Add_Call
func (*ForwardedToService_Add_Call) RunAndReturn ¶
func (_c *ForwardedToService_Add_Call) RunAndReturn(run func(map[int64]bool, int64) bool) *ForwardedToService_Add_Call
type ForwardedToService_Expecter ¶
type ForwardedToService_Expecter struct {
// contains filtered or unexported fields
}
func (*ForwardedToService_Expecter) Add ¶
func (_e *ForwardedToService_Expecter) Add(forwardedTo interface{}, dstChatId interface{}) *ForwardedToService_Add_Call
Add is a helper method to define mock.On call
- forwardedTo map[int64]bool
- dstChatId int64
func (*ForwardedToService_Expecter) Init ¶
func (_e *ForwardedToService_Expecter) Init(forwardedTo interface{}, dstChatIds interface{}) *ForwardedToService_Init_Call
Init is a helper method to define mock.On call
- forwardedTo map[int64]bool
- dstChatIds []int64
type ForwardedToService_Init_Call ¶
ForwardedToService_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*ForwardedToService_Init_Call) Return ¶
func (_c *ForwardedToService_Init_Call) Return() *ForwardedToService_Init_Call
func (*ForwardedToService_Init_Call) Run ¶
func (_c *ForwardedToService_Init_Call) Run(run func(forwardedTo map[int64]bool, dstChatIds []int64)) *ForwardedToService_Init_Call
func (*ForwardedToService_Init_Call) RunAndReturn ¶
func (_c *ForwardedToService_Init_Call) RunAndReturn(run func(map[int64]bool, []int64)) *ForwardedToService_Init_Call
type ForwarderService ¶
ForwarderService is an autogenerated mock type for the forwarderService type
func NewForwarderService ¶
func NewForwarderService(t interface {
mock.TestingT
Cleanup(func())
}) *ForwarderService
NewForwarderService creates a new instance of ForwarderService. 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 (*ForwarderService) EXPECT ¶
func (_m *ForwarderService) EXPECT() *ForwarderService_Expecter
func (*ForwarderService) ForwardMessages ¶
func (_m *ForwarderService) ForwardMessages(messages []*client.Message, filtersMode string, srcChatId int64, dstChatId int64, isSendCopy bool, forwardRuleId string, engineConfig *domain.EngineConfig)
ForwardMessages provides a mock function with given fields: messages, filtersMode, srcChatId, dstChatId, isSendCopy, forwardRuleId, engineConfig
type ForwarderService_Expecter ¶
type ForwarderService_Expecter struct {
// contains filtered or unexported fields
}
func (*ForwarderService_Expecter) ForwardMessages ¶
func (_e *ForwarderService_Expecter) ForwardMessages(messages interface{}, filtersMode interface{}, srcChatId interface{}, dstChatId interface{}, isSendCopy interface{}, forwardRuleId interface{}, engineConfig interface{}) *ForwarderService_ForwardMessages_Call
ForwardMessages is a helper method to define mock.On call
- messages []*client.Message
- filtersMode string
- srcChatId int64
- dstChatId int64
- isSendCopy bool
- forwardRuleId string
- engineConfig *domain.EngineConfig
type ForwarderService_ForwardMessages_Call ¶
ForwarderService_ForwardMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForwardMessages'
func (*ForwarderService_ForwardMessages_Call) Return ¶
func (_c *ForwarderService_ForwardMessages_Call) Return() *ForwarderService_ForwardMessages_Call
func (*ForwarderService_ForwardMessages_Call) Run ¶
func (_c *ForwarderService_ForwardMessages_Call) Run(run func(messages []*client.Message, filtersMode string, srcChatId int64, dstChatId int64, isSendCopy bool, forwardRuleId string, engineConfig *domain.EngineConfig)) *ForwarderService_ForwardMessages_Call
func (*ForwarderService_ForwardMessages_Call) RunAndReturn ¶
func (_c *ForwarderService_ForwardMessages_Call) RunAndReturn(run func([]*client.Message, string, int64, int64, bool, string, *domain.EngineConfig)) *ForwarderService_ForwardMessages_Call
type MediaAlbumService ¶
MediaAlbumService is an autogenerated mock type for the mediaAlbumService type
func NewMediaAlbumService ¶
func NewMediaAlbumService(t interface {
mock.TestingT
Cleanup(func())
}) *MediaAlbumService
NewMediaAlbumService creates a new instance of MediaAlbumService. 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 (*MediaAlbumService) AddMessage ¶
func (_m *MediaAlbumService) AddMessage(key string, message *client.Message) bool
AddMessage provides a mock function with given fields: key, message
func (*MediaAlbumService) EXPECT ¶
func (_m *MediaAlbumService) EXPECT() *MediaAlbumService_Expecter
func (*MediaAlbumService) GetKey ¶
func (_m *MediaAlbumService) GetKey(forwardRuleId string, MediaAlbumId client.JsonInt64) string
GetKey provides a mock function with given fields: forwardRuleId, MediaAlbumId
func (*MediaAlbumService) GetLastReceivedDiff ¶
func (_m *MediaAlbumService) GetLastReceivedDiff(key string) time.Duration
GetLastReceivedDiff provides a mock function with given fields: key
func (*MediaAlbumService) PopMessages ¶
func (_m *MediaAlbumService) PopMessages(key string) []*client.Message
PopMessages provides a mock function with given fields: key
type MediaAlbumService_AddMessage_Call ¶
MediaAlbumService_AddMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMessage'
func (*MediaAlbumService_AddMessage_Call) Return ¶
func (_c *MediaAlbumService_AddMessage_Call) Return(_a0 bool) *MediaAlbumService_AddMessage_Call
func (*MediaAlbumService_AddMessage_Call) Run ¶
func (_c *MediaAlbumService_AddMessage_Call) Run(run func(key string, message *client.Message)) *MediaAlbumService_AddMessage_Call
func (*MediaAlbumService_AddMessage_Call) RunAndReturn ¶
func (_c *MediaAlbumService_AddMessage_Call) RunAndReturn(run func(string, *client.Message) bool) *MediaAlbumService_AddMessage_Call
type MediaAlbumService_Expecter ¶
type MediaAlbumService_Expecter struct {
// contains filtered or unexported fields
}
func (*MediaAlbumService_Expecter) AddMessage ¶
func (_e *MediaAlbumService_Expecter) AddMessage(key interface{}, message interface{}) *MediaAlbumService_AddMessage_Call
AddMessage is a helper method to define mock.On call
- key string
- message *client.Message
func (*MediaAlbumService_Expecter) GetKey ¶
func (_e *MediaAlbumService_Expecter) GetKey(forwardRuleId interface{}, MediaAlbumId interface{}) *MediaAlbumService_GetKey_Call
GetKey is a helper method to define mock.On call
- forwardRuleId string
- MediaAlbumId client.JsonInt64
func (*MediaAlbumService_Expecter) GetLastReceivedDiff ¶
func (_e *MediaAlbumService_Expecter) GetLastReceivedDiff(key interface{}) *MediaAlbumService_GetLastReceivedDiff_Call
GetLastReceivedDiff is a helper method to define mock.On call
- key string
func (*MediaAlbumService_Expecter) PopMessages ¶
func (_e *MediaAlbumService_Expecter) PopMessages(key interface{}) *MediaAlbumService_PopMessages_Call
PopMessages is a helper method to define mock.On call
- key string
type MediaAlbumService_GetKey_Call ¶
MediaAlbumService_GetKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKey'
func (*MediaAlbumService_GetKey_Call) Return ¶
func (_c *MediaAlbumService_GetKey_Call) Return(_a0 string) *MediaAlbumService_GetKey_Call
func (*MediaAlbumService_GetKey_Call) Run ¶
func (_c *MediaAlbumService_GetKey_Call) Run(run func(forwardRuleId string, MediaAlbumId client.JsonInt64)) *MediaAlbumService_GetKey_Call
func (*MediaAlbumService_GetKey_Call) RunAndReturn ¶
func (_c *MediaAlbumService_GetKey_Call) RunAndReturn(run func(string, client.JsonInt64) string) *MediaAlbumService_GetKey_Call
type MediaAlbumService_GetLastReceivedDiff_Call ¶
MediaAlbumService_GetLastReceivedDiff_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastReceivedDiff'
func (*MediaAlbumService_GetLastReceivedDiff_Call) Return ¶
func (_c *MediaAlbumService_GetLastReceivedDiff_Call) Return(_a0 time.Duration) *MediaAlbumService_GetLastReceivedDiff_Call
func (*MediaAlbumService_GetLastReceivedDiff_Call) Run ¶
func (_c *MediaAlbumService_GetLastReceivedDiff_Call) Run(run func(key string)) *MediaAlbumService_GetLastReceivedDiff_Call
func (*MediaAlbumService_GetLastReceivedDiff_Call) RunAndReturn ¶
func (_c *MediaAlbumService_GetLastReceivedDiff_Call) RunAndReturn(run func(string) time.Duration) *MediaAlbumService_GetLastReceivedDiff_Call
type MediaAlbumService_PopMessages_Call ¶
MediaAlbumService_PopMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PopMessages'
func (*MediaAlbumService_PopMessages_Call) Return ¶
func (_c *MediaAlbumService_PopMessages_Call) Return(_a0 []*client.Message) *MediaAlbumService_PopMessages_Call
func (*MediaAlbumService_PopMessages_Call) Run ¶
func (_c *MediaAlbumService_PopMessages_Call) Run(run func(key string)) *MediaAlbumService_PopMessages_Call
func (*MediaAlbumService_PopMessages_Call) RunAndReturn ¶
func (_c *MediaAlbumService_PopMessages_Call) RunAndReturn(run func(string) []*client.Message) *MediaAlbumService_PopMessages_Call
type MessageService ¶
MessageService is an autogenerated mock type for the messageService type
func NewMessageService ¶
func NewMessageService(t interface {
mock.TestingT
Cleanup(func())
}) *MessageService
NewMessageService creates a new instance of MessageService. 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 (*MessageService) EXPECT ¶
func (_m *MessageService) EXPECT() *MessageService_Expecter
func (*MessageService) GetFormattedText ¶
func (_m *MessageService) GetFormattedText(message *client.Message) *client.FormattedText
GetFormattedText provides a mock function with given fields: message
func (*MessageService) IsSystemMessage ¶
func (_m *MessageService) IsSystemMessage(message *client.Message) bool
IsSystemMessage provides a mock function with given fields: message
type MessageService_Expecter ¶
type MessageService_Expecter struct {
// contains filtered or unexported fields
}
func (*MessageService_Expecter) GetFormattedText ¶
func (_e *MessageService_Expecter) GetFormattedText(message interface{}) *MessageService_GetFormattedText_Call
GetFormattedText is a helper method to define mock.On call
- message *client.Message
func (*MessageService_Expecter) IsSystemMessage ¶
func (_e *MessageService_Expecter) IsSystemMessage(message interface{}) *MessageService_IsSystemMessage_Call
IsSystemMessage is a helper method to define mock.On call
- message *client.Message
type MessageService_GetFormattedText_Call ¶
MessageService_GetFormattedText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFormattedText'
func (*MessageService_GetFormattedText_Call) Return ¶
func (_c *MessageService_GetFormattedText_Call) Return(_a0 *client.FormattedText) *MessageService_GetFormattedText_Call
func (*MessageService_GetFormattedText_Call) Run ¶
func (_c *MessageService_GetFormattedText_Call) Run(run func(message *client.Message)) *MessageService_GetFormattedText_Call
func (*MessageService_GetFormattedText_Call) RunAndReturn ¶
func (_c *MessageService_GetFormattedText_Call) RunAndReturn(run func(*client.Message) *client.FormattedText) *MessageService_GetFormattedText_Call
type MessageService_IsSystemMessage_Call ¶
MessageService_IsSystemMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsSystemMessage'
func (*MessageService_IsSystemMessage_Call) Return ¶
func (_c *MessageService_IsSystemMessage_Call) Return(_a0 bool) *MessageService_IsSystemMessage_Call
func (*MessageService_IsSystemMessage_Call) Run ¶
func (_c *MessageService_IsSystemMessage_Call) Run(run func(message *client.Message)) *MessageService_IsSystemMessage_Call
func (*MessageService_IsSystemMessage_Call) RunAndReturn ¶
func (_c *MessageService_IsSystemMessage_Call) RunAndReturn(run func(*client.Message) bool) *MessageService_IsSystemMessage_Call
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) EXPECT ¶
func (_m *StorageService) EXPECT() *StorageService_Expecter
func (*StorageService) IncrementForwardedMessages ¶
func (_m *StorageService) IncrementForwardedMessages(toChatId int64, date string)
IncrementForwardedMessages provides a mock function with given fields: toChatId, date
func (*StorageService) IncrementViewedMessages ¶
func (_m *StorageService) IncrementViewedMessages(toChatId int64, date string)
IncrementViewedMessages provides a mock function with given fields: toChatId, date
type StorageService_Expecter ¶
type StorageService_Expecter struct {
// contains filtered or unexported fields
}
func (*StorageService_Expecter) IncrementForwardedMessages ¶
func (_e *StorageService_Expecter) IncrementForwardedMessages(toChatId interface{}, date interface{}) *StorageService_IncrementForwardedMessages_Call
IncrementForwardedMessages is a helper method to define mock.On call
- toChatId int64
- date string
func (*StorageService_Expecter) IncrementViewedMessages ¶
func (_e *StorageService_Expecter) IncrementViewedMessages(toChatId interface{}, date interface{}) *StorageService_IncrementViewedMessages_Call
IncrementViewedMessages is a helper method to define mock.On call
- toChatId int64
- date string
type StorageService_IncrementForwardedMessages_Call ¶
StorageService_IncrementForwardedMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrementForwardedMessages'
func (*StorageService_IncrementForwardedMessages_Call) Run ¶
func (_c *StorageService_IncrementForwardedMessages_Call) Run(run func(toChatId int64, date string)) *StorageService_IncrementForwardedMessages_Call
func (*StorageService_IncrementForwardedMessages_Call) RunAndReturn ¶
func (_c *StorageService_IncrementForwardedMessages_Call) RunAndReturn(run func(int64, string)) *StorageService_IncrementForwardedMessages_Call
type StorageService_IncrementViewedMessages_Call ¶
StorageService_IncrementViewedMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrementViewedMessages'
func (*StorageService_IncrementViewedMessages_Call) Return ¶
func (_c *StorageService_IncrementViewedMessages_Call) Return() *StorageService_IncrementViewedMessages_Call
func (*StorageService_IncrementViewedMessages_Call) Run ¶
func (_c *StorageService_IncrementViewedMessages_Call) Run(run func(toChatId int64, date string)) *StorageService_IncrementViewedMessages_Call
func (*StorageService_IncrementViewedMessages_Call) RunAndReturn ¶
func (_c *StorageService_IncrementViewedMessages_Call) RunAndReturn(run func(int64, string)) *StorageService_IncrementViewedMessages_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