Documentation
¶
Index ¶
- type TelegramRepo
- func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter
- func (_m *TelegramRepo) GetChatHistory(_a0 *client.GetChatHistoryRequest) (*client.Messages, error)
- func (_m *TelegramRepo) GetClientDone() <-chan interface{}
- func (_m *TelegramRepo) GetListener() *client.Listener
- func (_m *TelegramRepo) LoadChats(_a0 *client.LoadChatsRequest) (*client.Ok, error)
- type TelegramRepo_Expecter
- func (_e *TelegramRepo_Expecter) GetChatHistory(_a0 interface{}) *TelegramRepo_GetChatHistory_Call
- func (_e *TelegramRepo_Expecter) GetClientDone() *TelegramRepo_GetClientDone_Call
- func (_e *TelegramRepo_Expecter) GetListener() *TelegramRepo_GetListener_Call
- func (_e *TelegramRepo_Expecter) LoadChats(_a0 interface{}) *TelegramRepo_LoadChats_Call
- type TelegramRepo_GetChatHistory_Call
- func (_c *TelegramRepo_GetChatHistory_Call) Return(_a0 *client.Messages, _a1 error) *TelegramRepo_GetChatHistory_Call
- func (_c *TelegramRepo_GetChatHistory_Call) Run(run func(_a0 *client.GetChatHistoryRequest)) *TelegramRepo_GetChatHistory_Call
- func (_c *TelegramRepo_GetChatHistory_Call) RunAndReturn(run func(*client.GetChatHistoryRequest) (*client.Messages, error)) *TelegramRepo_GetChatHistory_Call
- type TelegramRepo_GetClientDone_Call
- func (_c *TelegramRepo_GetClientDone_Call) Return(_a0 <-chan interface{}) *TelegramRepo_GetClientDone_Call
- func (_c *TelegramRepo_GetClientDone_Call) Run(run func()) *TelegramRepo_GetClientDone_Call
- func (_c *TelegramRepo_GetClientDone_Call) RunAndReturn(run func() <-chan interface{}) *TelegramRepo_GetClientDone_Call
- type TelegramRepo_GetListener_Call
- func (_c *TelegramRepo_GetListener_Call) Return(_a0 *client.Listener) *TelegramRepo_GetListener_Call
- func (_c *TelegramRepo_GetListener_Call) Run(run func()) *TelegramRepo_GetListener_Call
- func (_c *TelegramRepo_GetListener_Call) RunAndReturn(run func() *client.Listener) *TelegramRepo_GetListener_Call
- type TelegramRepo_LoadChats_Call
- func (_c *TelegramRepo_LoadChats_Call) Return(_a0 *client.Ok, _a1 error) *TelegramRepo_LoadChats_Call
- func (_c *TelegramRepo_LoadChats_Call) Run(run func(_a0 *client.LoadChatsRequest)) *TelegramRepo_LoadChats_Call
- func (_c *TelegramRepo_LoadChats_Call) RunAndReturn(run func(*client.LoadChatsRequest) (*client.Ok, error)) *TelegramRepo_LoadChats_Call
- type UpdateDeleteMessagesHandler
- type UpdateDeleteMessagesHandler_Expecter
- type UpdateDeleteMessagesHandler_Run_Call
- func (_c *UpdateDeleteMessagesHandler_Run_Call) Return() *UpdateDeleteMessagesHandler_Run_Call
- func (_c *UpdateDeleteMessagesHandler_Run_Call) Run(run func(update *client.UpdateDeleteMessages)) *UpdateDeleteMessagesHandler_Run_Call
- func (_c *UpdateDeleteMessagesHandler_Run_Call) RunAndReturn(run func(*client.UpdateDeleteMessages)) *UpdateDeleteMessagesHandler_Run_Call
- type UpdateMessageEditedHandler
- type UpdateMessageEditedHandler_Expecter
- type UpdateMessageEditedHandler_Run_Call
- func (_c *UpdateMessageEditedHandler_Run_Call) Return() *UpdateMessageEditedHandler_Run_Call
- func (_c *UpdateMessageEditedHandler_Run_Call) Run(run func(update *client.UpdateMessageEdited)) *UpdateMessageEditedHandler_Run_Call
- func (_c *UpdateMessageEditedHandler_Run_Call) RunAndReturn(run func(*client.UpdateMessageEdited)) *UpdateMessageEditedHandler_Run_Call
- type UpdateMessageSendHandler
- type UpdateMessageSendHandler_Expecter
- type UpdateMessageSendHandler_Run_Call
- func (_c *UpdateMessageSendHandler_Run_Call) Return() *UpdateMessageSendHandler_Run_Call
- func (_c *UpdateMessageSendHandler_Run_Call) Run(run func(update *client.UpdateMessageSendSucceeded)) *UpdateMessageSendHandler_Run_Call
- func (_c *UpdateMessageSendHandler_Run_Call) RunAndReturn(run func(*client.UpdateMessageSendSucceeded)) *UpdateMessageSendHandler_Run_Call
- type UpdateNewMessageHandler
- type UpdateNewMessageHandler_Expecter
- type UpdateNewMessageHandler_Run_Call
- func (_c *UpdateNewMessageHandler_Run_Call) Return() *UpdateNewMessageHandler_Run_Call
- func (_c *UpdateNewMessageHandler_Run_Call) Run(run func(ctx context.Context, update *client.UpdateNewMessage)) *UpdateNewMessageHandler_Run_Call
- func (_c *UpdateNewMessageHandler_Run_Call) RunAndReturn(run func(context.Context, *client.UpdateNewMessage)) *UpdateNewMessageHandler_Run_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) EXPECT ¶
func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter
func (*TelegramRepo) GetChatHistory ¶
func (_m *TelegramRepo) GetChatHistory(_a0 *client.GetChatHistoryRequest) (*client.Messages, error)
GetChatHistory provides a mock function with given fields: _a0
func (*TelegramRepo) GetClientDone ¶
func (_m *TelegramRepo) GetClientDone() <-chan interface{}
GetClientDone provides a mock function with no fields
func (*TelegramRepo) GetListener ¶
func (_m *TelegramRepo) GetListener() *client.Listener
GetListener provides a mock function with no fields
func (*TelegramRepo) LoadChats ¶
func (_m *TelegramRepo) LoadChats(_a0 *client.LoadChatsRequest) (*client.Ok, error)
LoadChats provides a mock function with given fields: _a0
type TelegramRepo_Expecter ¶
type TelegramRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*TelegramRepo_Expecter) GetChatHistory ¶
func (_e *TelegramRepo_Expecter) GetChatHistory(_a0 interface{}) *TelegramRepo_GetChatHistory_Call
GetChatHistory is a helper method to define mock.On call
- _a0 *client.GetChatHistoryRequest
func (*TelegramRepo_Expecter) GetClientDone ¶
func (_e *TelegramRepo_Expecter) GetClientDone() *TelegramRepo_GetClientDone_Call
GetClientDone is a helper method to define mock.On call
func (*TelegramRepo_Expecter) GetListener ¶
func (_e *TelegramRepo_Expecter) GetListener() *TelegramRepo_GetListener_Call
GetListener is a helper method to define mock.On call
func (*TelegramRepo_Expecter) LoadChats ¶
func (_e *TelegramRepo_Expecter) LoadChats(_a0 interface{}) *TelegramRepo_LoadChats_Call
LoadChats is a helper method to define mock.On call
- _a0 *client.LoadChatsRequest
type TelegramRepo_GetChatHistory_Call ¶
TelegramRepo_GetChatHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChatHistory'
func (*TelegramRepo_GetChatHistory_Call) Return ¶
func (_c *TelegramRepo_GetChatHistory_Call) Return(_a0 *client.Messages, _a1 error) *TelegramRepo_GetChatHistory_Call
func (*TelegramRepo_GetChatHistory_Call) Run ¶
func (_c *TelegramRepo_GetChatHistory_Call) Run(run func(_a0 *client.GetChatHistoryRequest)) *TelegramRepo_GetChatHistory_Call
func (*TelegramRepo_GetChatHistory_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetChatHistory_Call) RunAndReturn(run func(*client.GetChatHistoryRequest) (*client.Messages, error)) *TelegramRepo_GetChatHistory_Call
type TelegramRepo_GetClientDone_Call ¶
TelegramRepo_GetClientDone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClientDone'
func (*TelegramRepo_GetClientDone_Call) Return ¶
func (_c *TelegramRepo_GetClientDone_Call) Return(_a0 <-chan interface{}) *TelegramRepo_GetClientDone_Call
func (*TelegramRepo_GetClientDone_Call) Run ¶
func (_c *TelegramRepo_GetClientDone_Call) Run(run func()) *TelegramRepo_GetClientDone_Call
func (*TelegramRepo_GetClientDone_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetClientDone_Call) RunAndReturn(run func() <-chan interface{}) *TelegramRepo_GetClientDone_Call
type TelegramRepo_GetListener_Call ¶
TelegramRepo_GetListener_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetListener'
func (*TelegramRepo_GetListener_Call) Return ¶
func (_c *TelegramRepo_GetListener_Call) Return(_a0 *client.Listener) *TelegramRepo_GetListener_Call
func (*TelegramRepo_GetListener_Call) Run ¶
func (_c *TelegramRepo_GetListener_Call) Run(run func()) *TelegramRepo_GetListener_Call
func (*TelegramRepo_GetListener_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetListener_Call) RunAndReturn(run func() *client.Listener) *TelegramRepo_GetListener_Call
type TelegramRepo_LoadChats_Call ¶
TelegramRepo_LoadChats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadChats'
func (*TelegramRepo_LoadChats_Call) Return ¶
func (_c *TelegramRepo_LoadChats_Call) Return(_a0 *client.Ok, _a1 error) *TelegramRepo_LoadChats_Call
func (*TelegramRepo_LoadChats_Call) Run ¶
func (_c *TelegramRepo_LoadChats_Call) Run(run func(_a0 *client.LoadChatsRequest)) *TelegramRepo_LoadChats_Call
func (*TelegramRepo_LoadChats_Call) RunAndReturn ¶
func (_c *TelegramRepo_LoadChats_Call) RunAndReturn(run func(*client.LoadChatsRequest) (*client.Ok, error)) *TelegramRepo_LoadChats_Call
type UpdateDeleteMessagesHandler ¶
UpdateDeleteMessagesHandler is an autogenerated mock type for the updateDeleteMessagesHandler type
func NewUpdateDeleteMessagesHandler ¶
func NewUpdateDeleteMessagesHandler(t interface {
mock.TestingT
Cleanup(func())
}) *UpdateDeleteMessagesHandler
NewUpdateDeleteMessagesHandler creates a new instance of UpdateDeleteMessagesHandler. 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 (*UpdateDeleteMessagesHandler) EXPECT ¶
func (_m *UpdateDeleteMessagesHandler) EXPECT() *UpdateDeleteMessagesHandler_Expecter
func (*UpdateDeleteMessagesHandler) Run ¶
func (_m *UpdateDeleteMessagesHandler) Run(update *client.UpdateDeleteMessages)
Run provides a mock function with given fields: update
type UpdateDeleteMessagesHandler_Expecter ¶
type UpdateDeleteMessagesHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*UpdateDeleteMessagesHandler_Expecter) Run ¶
func (_e *UpdateDeleteMessagesHandler_Expecter) Run(update interface{}) *UpdateDeleteMessagesHandler_Run_Call
Run is a helper method to define mock.On call
- update *client.UpdateDeleteMessages
type UpdateDeleteMessagesHandler_Run_Call ¶
UpdateDeleteMessagesHandler_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*UpdateDeleteMessagesHandler_Run_Call) Return ¶
func (_c *UpdateDeleteMessagesHandler_Run_Call) Return() *UpdateDeleteMessagesHandler_Run_Call
func (*UpdateDeleteMessagesHandler_Run_Call) Run ¶
func (_c *UpdateDeleteMessagesHandler_Run_Call) Run(run func(update *client.UpdateDeleteMessages)) *UpdateDeleteMessagesHandler_Run_Call
func (*UpdateDeleteMessagesHandler_Run_Call) RunAndReturn ¶
func (_c *UpdateDeleteMessagesHandler_Run_Call) RunAndReturn(run func(*client.UpdateDeleteMessages)) *UpdateDeleteMessagesHandler_Run_Call
type UpdateMessageEditedHandler ¶
UpdateMessageEditedHandler is an autogenerated mock type for the updateMessageEditedHandler type
func NewUpdateMessageEditedHandler ¶
func NewUpdateMessageEditedHandler(t interface {
mock.TestingT
Cleanup(func())
}) *UpdateMessageEditedHandler
NewUpdateMessageEditedHandler creates a new instance of UpdateMessageEditedHandler. 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 (*UpdateMessageEditedHandler) EXPECT ¶
func (_m *UpdateMessageEditedHandler) EXPECT() *UpdateMessageEditedHandler_Expecter
func (*UpdateMessageEditedHandler) Run ¶
func (_m *UpdateMessageEditedHandler) Run(update *client.UpdateMessageEdited)
Run provides a mock function with given fields: update
type UpdateMessageEditedHandler_Expecter ¶
type UpdateMessageEditedHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*UpdateMessageEditedHandler_Expecter) Run ¶
func (_e *UpdateMessageEditedHandler_Expecter) Run(update interface{}) *UpdateMessageEditedHandler_Run_Call
Run is a helper method to define mock.On call
- update *client.UpdateMessageEdited
type UpdateMessageEditedHandler_Run_Call ¶
UpdateMessageEditedHandler_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*UpdateMessageEditedHandler_Run_Call) Return ¶
func (_c *UpdateMessageEditedHandler_Run_Call) Return() *UpdateMessageEditedHandler_Run_Call
func (*UpdateMessageEditedHandler_Run_Call) Run ¶
func (_c *UpdateMessageEditedHandler_Run_Call) Run(run func(update *client.UpdateMessageEdited)) *UpdateMessageEditedHandler_Run_Call
func (*UpdateMessageEditedHandler_Run_Call) RunAndReturn ¶
func (_c *UpdateMessageEditedHandler_Run_Call) RunAndReturn(run func(*client.UpdateMessageEdited)) *UpdateMessageEditedHandler_Run_Call
type UpdateMessageSendHandler ¶
UpdateMessageSendHandler is an autogenerated mock type for the updateMessageSendHandler type
func NewUpdateMessageSendHandler ¶
func NewUpdateMessageSendHandler(t interface {
mock.TestingT
Cleanup(func())
}) *UpdateMessageSendHandler
NewUpdateMessageSendHandler creates a new instance of UpdateMessageSendHandler. 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 (*UpdateMessageSendHandler) EXPECT ¶
func (_m *UpdateMessageSendHandler) EXPECT() *UpdateMessageSendHandler_Expecter
func (*UpdateMessageSendHandler) Run ¶
func (_m *UpdateMessageSendHandler) Run(update *client.UpdateMessageSendSucceeded)
Run provides a mock function with given fields: update
type UpdateMessageSendHandler_Expecter ¶
type UpdateMessageSendHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*UpdateMessageSendHandler_Expecter) Run ¶
func (_e *UpdateMessageSendHandler_Expecter) Run(update interface{}) *UpdateMessageSendHandler_Run_Call
Run is a helper method to define mock.On call
- update *client.UpdateMessageSendSucceeded
type UpdateMessageSendHandler_Run_Call ¶
UpdateMessageSendHandler_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*UpdateMessageSendHandler_Run_Call) Return ¶
func (_c *UpdateMessageSendHandler_Run_Call) Return() *UpdateMessageSendHandler_Run_Call
func (*UpdateMessageSendHandler_Run_Call) Run ¶
func (_c *UpdateMessageSendHandler_Run_Call) Run(run func(update *client.UpdateMessageSendSucceeded)) *UpdateMessageSendHandler_Run_Call
func (*UpdateMessageSendHandler_Run_Call) RunAndReturn ¶
func (_c *UpdateMessageSendHandler_Run_Call) RunAndReturn(run func(*client.UpdateMessageSendSucceeded)) *UpdateMessageSendHandler_Run_Call
type UpdateNewMessageHandler ¶
UpdateNewMessageHandler is an autogenerated mock type for the updateNewMessageHandler type
func NewUpdateNewMessageHandler ¶
func NewUpdateNewMessageHandler(t interface {
mock.TestingT
Cleanup(func())
}) *UpdateNewMessageHandler
NewUpdateNewMessageHandler creates a new instance of UpdateNewMessageHandler. 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 (*UpdateNewMessageHandler) EXPECT ¶
func (_m *UpdateNewMessageHandler) EXPECT() *UpdateNewMessageHandler_Expecter
func (*UpdateNewMessageHandler) Run ¶
func (_m *UpdateNewMessageHandler) Run(ctx context.Context, update *client.UpdateNewMessage)
Run provides a mock function with given fields: ctx, update
type UpdateNewMessageHandler_Expecter ¶
type UpdateNewMessageHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*UpdateNewMessageHandler_Expecter) Run ¶
func (_e *UpdateNewMessageHandler_Expecter) Run(ctx interface{}, update interface{}) *UpdateNewMessageHandler_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
- update *client.UpdateNewMessage
type UpdateNewMessageHandler_Run_Call ¶
UpdateNewMessageHandler_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*UpdateNewMessageHandler_Run_Call) Return ¶
func (_c *UpdateNewMessageHandler_Run_Call) Return() *UpdateNewMessageHandler_Run_Call
func (*UpdateNewMessageHandler_Run_Call) Run ¶
func (_c *UpdateNewMessageHandler_Run_Call) Run(run func(ctx context.Context, update *client.UpdateNewMessage)) *UpdateNewMessageHandler_Run_Call
func (*UpdateNewMessageHandler_Run_Call) RunAndReturn ¶
func (_c *UpdateNewMessageHandler_Run_Call) RunAndReturn(run func(context.Context, *client.UpdateNewMessage)) *UpdateNewMessageHandler_Run_Call