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 MockGroupRepo
- type MockGroupRepoMockRecorder
- type MockInterfaceClient
- func (m *MockInterfaceClient) EXPECT() *MockInterfaceClientMockRecorder
- func (m *MockInterfaceClient) Get(url string) (*http.Response, error)
- func (m *MockInterfaceClient) GetJSON(url string, target interface{}) error
- func (m *MockInterfaceClient) Post(url string, body []byte) (*http.Response, error)
- type MockInterfaceClientMockRecorder
- type MockInterfaceLogger
- func (m *MockInterfaceLogger) Debug(message interface{}, args ...interface{})
- func (m *MockInterfaceLogger) EXPECT() *MockInterfaceLoggerMockRecorder
- func (m *MockInterfaceLogger) Error(message interface{}, args ...interface{})
- func (m *MockInterfaceLogger) Fatal(message interface{}, args ...interface{})
- func (m *MockInterfaceLogger) Info(message string, args ...interface{})
- func (m *MockInterfaceLogger) Warn(message string, args ...interface{})
- type MockInterfaceLoggerMockRecorder
- func (mr *MockInterfaceLoggerMockRecorder) Debug(message interface{}, args ...interface{}) *gomock.Call
- func (mr *MockInterfaceLoggerMockRecorder) Error(message interface{}, args ...interface{}) *gomock.Call
- func (mr *MockInterfaceLoggerMockRecorder) Fatal(message interface{}, args ...interface{}) *gomock.Call
- func (mr *MockInterfaceLoggerMockRecorder) Info(message interface{}, args ...interface{}) *gomock.Call
- func (mr *MockInterfaceLoggerMockRecorder) Warn(message interface{}, args ...interface{}) *gomock.Call
- type MockMessageRepo
- type MockMessageRepoMockRecorder
- type MockMessenger
- func (m *MockMessenger) EXPECT() *MockMessengerMockRecorder
- func (m *MockMessenger) GroupList(id uint64, groups []string)
- func (m *MockMessenger) IncorrectFormat(id uint64, command string)
- func (m *MockMessenger) Message(id uint64, text string)
- func (m *MockMessenger) RemovedGroup(id uint64)
- func (m *MockMessenger) StartDateUpdated(id uint64)
- func (m *MockMessenger) URLAdded(id uint64)
- func (m *MockMessenger) UnknownError(id uint64, text string)
- func (m *MockMessenger) UnknownSource(id uint64, url string)
- type MockMessengerMockRecorder
- func (mr *MockMessengerMockRecorder) GroupList(id, groups interface{}) *gomock.Call
- func (mr *MockMessengerMockRecorder) IncorrectFormat(id, command interface{}) *gomock.Call
- func (mr *MockMessengerMockRecorder) Message(id, text interface{}) *gomock.Call
- func (mr *MockMessengerMockRecorder) RemovedGroup(id interface{}) *gomock.Call
- func (mr *MockMessengerMockRecorder) StartDateUpdated(id interface{}) *gomock.Call
- func (mr *MockMessengerMockRecorder) URLAdded(id interface{}) *gomock.Call
- func (mr *MockMessengerMockRecorder) UnknownError(id, text interface{}) *gomock.Call
- func (mr *MockMessengerMockRecorder) UnknownSource(id, url interface{}) *gomock.Call
- type MockSource
- type MockSourceMockRecorder
- type MockUser
- type MockUserMockRecorder
- type MockUserRepo
- func (m *MockUserRepo) AddGroupByURL(id uint64, source, url string) error
- func (m *MockUserRepo) EXPECT() *MockUserRepoMockRecorder
- func (m *MockUserRepo) Groups(id uint64) ([]entity.Group, error)
- func (m *MockUserRepo) RemoveGroup(id uint64, source, url string) error
- func (m *MockUserRepo) UpdateStartDate(id uint64, date time.Time) error
- type MockUserRepoMockRecorder
- func (mr *MockUserRepoMockRecorder) AddGroupByURL(id, source, url interface{}) *gomock.Call
- func (mr *MockUserRepoMockRecorder) Groups(id interface{}) *gomock.Call
- func (mr *MockUserRepoMockRecorder) RemoveGroup(id, source, url interface{}) *gomock.Call
- func (mr *MockUserRepoMockRecorder) UpdateStartDate(id, date interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGroupRepo ¶
type MockGroupRepo struct {
// contains filtered or unexported fields
}
MockGroupRepo is a mock of GroupRepo interface.
func NewMockGroupRepo ¶
func NewMockGroupRepo(ctrl *gomock.Controller) *MockGroupRepo
NewMockGroupRepo creates a new mock instance.
func (*MockGroupRepo) AllBySource ¶
func (m *MockGroupRepo) AllBySource(source string) ([]entity.Group, error)
AllBySource mocks base method.
func (*MockGroupRepo) EXPECT ¶
func (m *MockGroupRepo) EXPECT() *MockGroupRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGroupRepoMockRecorder ¶
type MockGroupRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockGroupRepoMockRecorder is the mock recorder for MockGroupRepo.
func (*MockGroupRepoMockRecorder) AllBySource ¶
func (mr *MockGroupRepoMockRecorder) AllBySource(source interface{}) *gomock.Call
AllBySource indicates an expected call of AllBySource.
func (*MockGroupRepoMockRecorder) Update ¶
func (mr *MockGroupRepoMockRecorder) Update(group interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockInterfaceClient ¶
type MockInterfaceClient struct {
// contains filtered or unexported fields
}
MockInterfaceClient is a mock of InterfaceClient interface.
func NewMockInterfaceClient ¶
func NewMockInterfaceClient(ctrl *gomock.Controller) *MockInterfaceClient
NewMockInterfaceClient creates a new mock instance.
func (*MockInterfaceClient) EXPECT ¶
func (m *MockInterfaceClient) EXPECT() *MockInterfaceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterfaceClient) Get ¶
func (m *MockInterfaceClient) Get(url string) (*http.Response, error)
Get mocks base method.
func (*MockInterfaceClient) GetJSON ¶
func (m *MockInterfaceClient) GetJSON(url string, target interface{}) error
GetJSON mocks base method.
type MockInterfaceClientMockRecorder ¶
type MockInterfaceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceClientMockRecorder is the mock recorder for MockInterfaceClient.
func (*MockInterfaceClientMockRecorder) Get ¶
func (mr *MockInterfaceClientMockRecorder) Get(url interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockInterfaceClientMockRecorder) GetJSON ¶
func (mr *MockInterfaceClientMockRecorder) GetJSON(url, target interface{}) *gomock.Call
GetJSON indicates an expected call of GetJSON.
func (*MockInterfaceClientMockRecorder) Post ¶
func (mr *MockInterfaceClientMockRecorder) Post(url, body interface{}) *gomock.Call
Post indicates an expected call of Post.
type MockInterfaceLogger ¶
type MockInterfaceLogger struct {
// contains filtered or unexported fields
}
MockInterfaceLogger is a mock of InterfaceLogger interface.
func NewMockInterfaceLogger ¶
func NewMockInterfaceLogger(ctrl *gomock.Controller) *MockInterfaceLogger
NewMockInterfaceLogger creates a new mock instance.
func (*MockInterfaceLogger) Debug ¶
func (m *MockInterfaceLogger) Debug(message interface{}, args ...interface{})
Debug mocks base method.
func (*MockInterfaceLogger) EXPECT ¶
func (m *MockInterfaceLogger) EXPECT() *MockInterfaceLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterfaceLogger) Error ¶
func (m *MockInterfaceLogger) Error(message interface{}, args ...interface{})
Error mocks base method.
func (*MockInterfaceLogger) Fatal ¶
func (m *MockInterfaceLogger) Fatal(message interface{}, args ...interface{})
Fatal mocks base method.
func (*MockInterfaceLogger) Info ¶
func (m *MockInterfaceLogger) Info(message string, args ...interface{})
Info mocks base method.
func (*MockInterfaceLogger) Warn ¶
func (m *MockInterfaceLogger) Warn(message string, args ...interface{})
Warn mocks base method.
type MockInterfaceLoggerMockRecorder ¶
type MockInterfaceLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceLoggerMockRecorder is the mock recorder for MockInterfaceLogger.
func (*MockInterfaceLoggerMockRecorder) Debug ¶
func (mr *MockInterfaceLoggerMockRecorder) Debug(message interface{}, args ...interface{}) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockInterfaceLoggerMockRecorder) Error ¶
func (mr *MockInterfaceLoggerMockRecorder) Error(message interface{}, args ...interface{}) *gomock.Call
Error indicates an expected call of Error.
func (*MockInterfaceLoggerMockRecorder) Fatal ¶
func (mr *MockInterfaceLoggerMockRecorder) Fatal(message interface{}, args ...interface{}) *gomock.Call
Fatal indicates an expected call of Fatal.
func (*MockInterfaceLoggerMockRecorder) Info ¶
func (mr *MockInterfaceLoggerMockRecorder) Info(message interface{}, args ...interface{}) *gomock.Call
Info indicates an expected call of Info.
func (*MockInterfaceLoggerMockRecorder) Warn ¶
func (mr *MockInterfaceLoggerMockRecorder) Warn(message interface{}, args ...interface{}) *gomock.Call
Warn indicates an expected call of Warn.
type MockMessageRepo ¶
type MockMessageRepo struct {
// contains filtered or unexported fields
}
MockMessageRepo is a mock of MessageRepo interface.
func NewMockMessageRepo ¶
func NewMockMessageRepo(ctrl *gomock.Controller) *MockMessageRepo
NewMockMessageRepo creates a new mock instance.
func (*MockMessageRepo) EXPECT ¶
func (m *MockMessageRepo) EXPECT() *MockMessageRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMessageRepoMockRecorder ¶
type MockMessageRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockMessageRepoMockRecorder is the mock recorder for MockMessageRepo.
func (*MockMessageRepoMockRecorder) Add ¶
func (mr *MockMessageRepoMockRecorder) Add(groupID, messageID, source, messageAt interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockMessageRepoMockRecorder) Last ¶
func (mr *MockMessageRepoMockRecorder) Last(groupID interface{}) *gomock.Call
Last indicates an expected call of Last.
type MockMessenger ¶
type MockMessenger struct {
// contains filtered or unexported fields
}
MockMessenger is a mock of Messenger interface.
func NewMockMessenger ¶
func NewMockMessenger(ctrl *gomock.Controller) *MockMessenger
NewMockMessenger creates a new mock instance.
func (*MockMessenger) EXPECT ¶
func (m *MockMessenger) EXPECT() *MockMessengerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMessenger) GroupList ¶
func (m *MockMessenger) GroupList(id uint64, groups []string)
GroupList mocks base method.
func (*MockMessenger) IncorrectFormat ¶
func (m *MockMessenger) IncorrectFormat(id uint64, command string)
IncorrectFormat mocks base method.
func (*MockMessenger) Message ¶
func (m *MockMessenger) Message(id uint64, text string)
Message mocks base method.
func (*MockMessenger) RemovedGroup ¶
func (m *MockMessenger) RemovedGroup(id uint64)
RemovedGroup mocks base method.
func (*MockMessenger) StartDateUpdated ¶
func (m *MockMessenger) StartDateUpdated(id uint64)
StartDateUpdated mocks base method.
func (*MockMessenger) URLAdded ¶
func (m *MockMessenger) URLAdded(id uint64)
URLAdded mocks base method.
func (*MockMessenger) UnknownError ¶
func (m *MockMessenger) UnknownError(id uint64, text string)
UnknownError mocks base method.
func (*MockMessenger) UnknownSource ¶
func (m *MockMessenger) UnknownSource(id uint64, url string)
UnknownSource mocks base method.
type MockMessengerMockRecorder ¶
type MockMessengerMockRecorder struct {
// contains filtered or unexported fields
}
MockMessengerMockRecorder is the mock recorder for MockMessenger.
func (*MockMessengerMockRecorder) GroupList ¶
func (mr *MockMessengerMockRecorder) GroupList(id, groups interface{}) *gomock.Call
GroupList indicates an expected call of GroupList.
func (*MockMessengerMockRecorder) IncorrectFormat ¶
func (mr *MockMessengerMockRecorder) IncorrectFormat(id, command interface{}) *gomock.Call
IncorrectFormat indicates an expected call of IncorrectFormat.
func (*MockMessengerMockRecorder) Message ¶
func (mr *MockMessengerMockRecorder) Message(id, text interface{}) *gomock.Call
Message indicates an expected call of Message.
func (*MockMessengerMockRecorder) RemovedGroup ¶
func (mr *MockMessengerMockRecorder) RemovedGroup(id interface{}) *gomock.Call
RemovedGroup indicates an expected call of RemovedGroup.
func (*MockMessengerMockRecorder) StartDateUpdated ¶
func (mr *MockMessengerMockRecorder) StartDateUpdated(id interface{}) *gomock.Call
StartDateUpdated indicates an expected call of StartDateUpdated.
func (*MockMessengerMockRecorder) URLAdded ¶
func (mr *MockMessengerMockRecorder) URLAdded(id interface{}) *gomock.Call
URLAdded indicates an expected call of URLAdded.
func (*MockMessengerMockRecorder) UnknownError ¶
func (mr *MockMessengerMockRecorder) UnknownError(id, text interface{}) *gomock.Call
UnknownError indicates an expected call of UnknownError.
func (*MockMessengerMockRecorder) UnknownSource ¶
func (mr *MockMessengerMockRecorder) UnknownSource(id, url interface{}) *gomock.Call
UnknownSource indicates an expected call of UnknownSource.
type MockSource ¶
type MockSource struct {
// contains filtered or unexported fields
}
MockSource is a mock of Source interface.
func NewMockSource ¶
func NewMockSource(ctrl *gomock.Controller) *MockSource
NewMockSource creates a new mock instance.
func (*MockSource) EXPECT ¶
func (m *MockSource) EXPECT() *MockSourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSource) GetGroupMessages ¶
GetGroupMessages mocks base method.
type MockSourceMockRecorder ¶
type MockSourceMockRecorder struct {
// contains filtered or unexported fields
}
MockSourceMockRecorder is the mock recorder for MockSource.
func (*MockSourceMockRecorder) GetGroupMessages ¶
func (mr *MockSourceMockRecorder) GetGroupMessages(id, offset interface{}) *gomock.Call
GetGroupMessages indicates an expected call of GetGroupMessages.
func (*MockSourceMockRecorder) Name ¶
func (mr *MockSourceMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
type MockUser ¶
type MockUser struct {
// contains filtered or unexported fields
}
MockUser is a mock of User interface.
func NewMockUser ¶
func NewMockUser(ctrl *gomock.Controller) *MockUser
NewMockUser creates a new mock instance.
func (*MockUser) EXPECT ¶
func (m *MockUser) EXPECT() *MockUserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUser) TelegramCallback ¶
func (m *MockUser) TelegramCallback(arg0 entity.TelegramResult) error
TelegramCallback mocks base method.
type MockUserMockRecorder ¶
type MockUserMockRecorder struct {
// contains filtered or unexported fields
}
MockUserMockRecorder is the mock recorder for MockUser.
func (*MockUserMockRecorder) TelegramCallback ¶
func (mr *MockUserMockRecorder) TelegramCallback(arg0 interface{}) *gomock.Call
TelegramCallback indicates an expected call of TelegramCallback.
type MockUserRepo ¶
type MockUserRepo struct {
// contains filtered or unexported fields
}
MockUserRepo is a mock of UserRepo interface.
func NewMockUserRepo ¶
func NewMockUserRepo(ctrl *gomock.Controller) *MockUserRepo
NewMockUserRepo creates a new mock instance.
func (*MockUserRepo) AddGroupByURL ¶
func (m *MockUserRepo) AddGroupByURL(id uint64, source, url string) error
AddGroupByURL mocks base method.
func (*MockUserRepo) EXPECT ¶
func (m *MockUserRepo) EXPECT() *MockUserRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepo) Groups ¶
func (m *MockUserRepo) Groups(id uint64) ([]entity.Group, error)
Groups mocks base method.
func (*MockUserRepo) RemoveGroup ¶
func (m *MockUserRepo) RemoveGroup(id uint64, source, url string) error
RemoveGroup mocks base method.
func (*MockUserRepo) UpdateStartDate ¶
func (m *MockUserRepo) UpdateStartDate(id uint64, date time.Time) error
UpdateStartDate mocks base method.
type MockUserRepoMockRecorder ¶
type MockUserRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepoMockRecorder is the mock recorder for MockUserRepo.
func (*MockUserRepoMockRecorder) AddGroupByURL ¶
func (mr *MockUserRepoMockRecorder) AddGroupByURL(id, source, url interface{}) *gomock.Call
AddGroupByURL indicates an expected call of AddGroupByURL.
func (*MockUserRepoMockRecorder) Groups ¶
func (mr *MockUserRepoMockRecorder) Groups(id interface{}) *gomock.Call
Groups indicates an expected call of Groups.
func (*MockUserRepoMockRecorder) RemoveGroup ¶
func (mr *MockUserRepoMockRecorder) RemoveGroup(id, source, url interface{}) *gomock.Call
RemoveGroup indicates an expected call of RemoveGroup.
func (*MockUserRepoMockRecorder) UpdateStartDate ¶
func (mr *MockUserRepoMockRecorder) UpdateStartDate(id, date interface{}) *gomock.Call
UpdateStartDate indicates an expected call of UpdateStartDate.