Documentation ¶
Overview ¶
Package mock_easyalert is a generated GoMock package.
Package mock_easyalert is a generated GoMock package.
Index ¶
- type MockAlertRepository
- func (m *MockAlertRepository) CreateAlert(alert easyalert.Alert) (easyalert.Alert, error)
- func (m *MockAlertRepository) DeleteAlert(alert easyalert.Alert) error
- func (m *MockAlertRepository) EXPECT() *MockAlertRepositoryMockRecorder
- func (m *MockAlertRepository) FindAlert(query string, params ...interface{}) (easyalert.Alert, error)
- func (m *MockAlertRepository) FindAlerts(query string, params ...interface{}) ([]easyalert.Alert, error)
- func (m *MockAlertRepository) UpdateAlert(alert easyalert.Alert) (easyalert.Alert, error)
- type MockAlertRepositoryMockRecorder
- func (mr *MockAlertRepositoryMockRecorder) CreateAlert(alert interface{}) *gomock.Call
- func (mr *MockAlertRepositoryMockRecorder) DeleteAlert(alert interface{}) *gomock.Call
- func (mr *MockAlertRepositoryMockRecorder) FindAlert(query interface{}, params ...interface{}) *gomock.Call
- func (mr *MockAlertRepositoryMockRecorder) FindAlerts(query interface{}, params ...interface{}) *gomock.Call
- func (mr *MockAlertRepositoryMockRecorder) UpdateAlert(alert interface{}) *gomock.Call
- type MockUserRepository
- func (m *MockUserRepository) CreateUser(user easyalert.User) (easyalert.User, error)
- func (m *MockUserRepository) DeleteUser(user easyalert.User) error
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) FindUser(query string, params ...interface{}) (easyalert.User, error)
- func (m *MockUserRepository) FindUsers() ([]easyalert.User, error)
- func (m *MockUserRepository) UpdateUser(user easyalert.User) (easyalert.User, error)
- type MockUserRepositoryMockRecorder
- func (mr *MockUserRepositoryMockRecorder) CreateUser(user interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) DeleteUser(user interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindUser(query interface{}, params ...interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) FindUsers() *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) UpdateUser(user interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAlertRepository ¶
type MockAlertRepository struct {
// contains filtered or unexported fields
}
MockAlertRepository is a mock of AlertRepository interface
func NewMockAlertRepository ¶
func NewMockAlertRepository(ctrl *gomock.Controller) *MockAlertRepository
NewMockAlertRepository creates a new mock instance
func (*MockAlertRepository) CreateAlert ¶
CreateAlert mocks base method
func (*MockAlertRepository) DeleteAlert ¶
func (m *MockAlertRepository) DeleteAlert(alert easyalert.Alert) error
DeleteAlert mocks base method
func (*MockAlertRepository) EXPECT ¶
func (m *MockAlertRepository) EXPECT() *MockAlertRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAlertRepository) FindAlert ¶
func (m *MockAlertRepository) FindAlert(query string, params ...interface{}) (easyalert.Alert, error)
FindAlert mocks base method
func (*MockAlertRepository) FindAlerts ¶
func (m *MockAlertRepository) FindAlerts(query string, params ...interface{}) ([]easyalert.Alert, error)
FindAlerts mocks base method
func (*MockAlertRepository) UpdateAlert ¶
UpdateAlert mocks base method
type MockAlertRepositoryMockRecorder ¶
type MockAlertRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAlertRepositoryMockRecorder is the mock recorder for MockAlertRepository
func (*MockAlertRepositoryMockRecorder) CreateAlert ¶
func (mr *MockAlertRepositoryMockRecorder) CreateAlert(alert interface{}) *gomock.Call
CreateAlert indicates an expected call of CreateAlert
func (*MockAlertRepositoryMockRecorder) DeleteAlert ¶
func (mr *MockAlertRepositoryMockRecorder) DeleteAlert(alert interface{}) *gomock.Call
DeleteAlert indicates an expected call of DeleteAlert
func (*MockAlertRepositoryMockRecorder) FindAlert ¶
func (mr *MockAlertRepositoryMockRecorder) FindAlert(query interface{}, params ...interface{}) *gomock.Call
FindAlert indicates an expected call of FindAlert
func (*MockAlertRepositoryMockRecorder) FindAlerts ¶
func (mr *MockAlertRepositoryMockRecorder) FindAlerts(query interface{}, params ...interface{}) *gomock.Call
FindAlerts indicates an expected call of FindAlerts
func (*MockAlertRepositoryMockRecorder) UpdateAlert ¶
func (mr *MockAlertRepositoryMockRecorder) UpdateAlert(alert interface{}) *gomock.Call
UpdateAlert indicates an expected call of UpdateAlert
type MockUserRepository ¶
type MockUserRepository struct {
// contains filtered or unexported fields
}
MockUserRepository is a mock of UserRepository interface
func NewMockUserRepository ¶
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository
NewMockUserRepository creates a new mock instance
func (*MockUserRepository) CreateUser ¶
CreateUser mocks base method
func (*MockUserRepository) DeleteUser ¶
func (m *MockUserRepository) DeleteUser(user easyalert.User) error
DeleteUser mocks base method
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUserRepository) FindUser ¶
func (m *MockUserRepository) FindUser(query string, params ...interface{}) (easyalert.User, error)
FindUser mocks base method
func (*MockUserRepository) FindUsers ¶
func (m *MockUserRepository) FindUsers() ([]easyalert.User, error)
FindUsers mocks base method
func (*MockUserRepository) UpdateUser ¶
UpdateUser mocks base method
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository
func (*MockUserRepositoryMockRecorder) CreateUser ¶
func (mr *MockUserRepositoryMockRecorder) CreateUser(user interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser
func (*MockUserRepositoryMockRecorder) DeleteUser ¶
func (mr *MockUserRepositoryMockRecorder) DeleteUser(user interface{}) *gomock.Call
DeleteUser indicates an expected call of DeleteUser
func (*MockUserRepositoryMockRecorder) FindUser ¶
func (mr *MockUserRepositoryMockRecorder) FindUser(query interface{}, params ...interface{}) *gomock.Call
FindUser indicates an expected call of FindUser
func (*MockUserRepositoryMockRecorder) FindUsers ¶
func (mr *MockUserRepositoryMockRecorder) FindUsers() *gomock.Call
FindUsers indicates an expected call of FindUsers
func (*MockUserRepositoryMockRecorder) UpdateUser ¶
func (mr *MockUserRepositoryMockRecorder) UpdateUser(user interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser