Documentation ¶
Overview ¶
Package mock_usecase is a generated GoMock package.
Index ¶
- type MockAuthRepository
- type MockAuthRepositoryMockRecorder
- type MockIncidentRepository
- func (m *MockIncidentRepository) Create(arg0 context.Context, arg1 entity.Incident) (int, error)
- func (m *MockIncidentRepository) Delete(arg0 context.Context, arg1 int) error
- func (m *MockIncidentRepository) EXPECT() *MockIncidentRepositoryMockRecorder
- func (m *MockIncidentRepository) GetAll(arg0 context.Context) ([]entity.Incident, error)
- func (m *MockIncidentRepository) GetById(arg0 context.Context, arg1 int) (*entity.Incident, error)
- func (m *MockIncidentRepository) GetByType(arg0 context.Context, arg1 int) ([]entity.Incident, error)
- func (m *MockIncidentRepository) Update(arg0 context.Context, arg1 entity.Incident) error
- type MockIncidentRepositoryMockRecorder
- func (mr *MockIncidentRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIncidentRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIncidentRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockIncidentRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIncidentRepositoryMockRecorder) GetByType(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIncidentRepositoryMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockRoleRepository
- func (m *MockRoleRepository) Create(arg0 context.Context, arg1 entity.UserRole) (int, error)
- func (m *MockRoleRepository) Delete(arg0 context.Context, arg1 int) error
- func (m *MockRoleRepository) EXPECT() *MockRoleRepositoryMockRecorder
- func (m *MockRoleRepository) GetAll(arg0 context.Context) ([]entity.UserRole, error)
- func (m *MockRoleRepository) GetById(arg0 context.Context, arg1 int) (*entity.UserRole, error)
- func (m *MockRoleRepository) Update(arg0 context.Context, arg1 int, arg2 entity.UserRole) error
- type MockRoleRepositoryMockRecorder
- func (mr *MockRoleRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockStatusRepository
- func (m *MockStatusRepository) Create(arg0 context.Context, arg1 entity.IncidentStatus) (int, error)
- func (m *MockStatusRepository) Delete(arg0 context.Context, arg1 int) error
- func (m *MockStatusRepository) EXPECT() *MockStatusRepositoryMockRecorder
- func (m *MockStatusRepository) GetAll(arg0 context.Context) ([]entity.IncidentStatus, error)
- func (m *MockStatusRepository) GetById(arg0 context.Context, arg1 int) (*entity.IncidentStatus, error)
- func (m *MockStatusRepository) Update(arg0 context.Context, arg1 int, arg2 entity.IncidentStatus) error
- type MockStatusRepositoryMockRecorder
- func (mr *MockStatusRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStatusRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStatusRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockStatusRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStatusRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockTokenizer
- type MockTokenizerMockRecorder
- type MockTypeRepository
- func (m *MockTypeRepository) Create(arg0 context.Context, arg1 entity.IncidentType) (int, error)
- func (m *MockTypeRepository) Delete(arg0 context.Context, arg1 int) error
- func (m *MockTypeRepository) EXPECT() *MockTypeRepositoryMockRecorder
- func (m *MockTypeRepository) GetAll(arg0 context.Context) ([]entity.IncidentType, error)
- func (m *MockTypeRepository) GetById(arg0 context.Context, arg1 int) (*entity.IncidentType, error)
- func (m *MockTypeRepository) Update(arg0 context.Context, arg1 int, arg2 entity.IncidentType) error
- type MockTypeRepositoryMockRecorder
- func (mr *MockTypeRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTypeRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTypeRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockTypeRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTypeRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockUserRepository
- func (m *MockUserRepository) ChangeRole(arg0 context.Context, arg1, arg2 int) error
- func (m *MockUserRepository) Delete(arg0 context.Context, arg1 int) error
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) GetAll(arg0 context.Context) ([]entity.User, error)
- func (m *MockUserRepository) GetById(arg0 context.Context, arg1 int) (*entity.User, error)
- func (m *MockUserRepository) Update(arg0 context.Context, arg1 int, arg2 entity.User) error
- type MockUserRepositoryMockRecorder
- func (mr *MockUserRepositoryMockRecorder) ChangeRole(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthRepository ¶
type MockAuthRepository struct {
// contains filtered or unexported fields
}
MockAuthRepository is a mock of AuthRepository interface.
func NewMockAuthRepository ¶
func NewMockAuthRepository(ctrl *gomock.Controller) *MockAuthRepository
NewMockAuthRepository creates a new mock instance.
func (*MockAuthRepository) EXPECT ¶
func (m *MockAuthRepository) EXPECT() *MockAuthRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthRepositoryMockRecorder ¶
type MockAuthRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthRepositoryMockRecorder is the mock recorder for MockAuthRepository.
func (*MockAuthRepositoryMockRecorder) Create ¶
func (mr *MockAuthRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockAuthRepositoryMockRecorder) GetUser ¶
func (mr *MockAuthRepositoryMockRecorder) GetUser(arg0, arg1, arg2 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
type MockIncidentRepository ¶
type MockIncidentRepository struct {
// contains filtered or unexported fields
}
MockIncidentRepository is a mock of IncidentRepository interface.
func NewMockIncidentRepository ¶
func NewMockIncidentRepository(ctrl *gomock.Controller) *MockIncidentRepository
NewMockIncidentRepository creates a new mock instance.
func (*MockIncidentRepository) Delete ¶
func (m *MockIncidentRepository) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockIncidentRepository) EXPECT ¶
func (m *MockIncidentRepository) EXPECT() *MockIncidentRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIncidentRepositoryMockRecorder ¶
type MockIncidentRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIncidentRepositoryMockRecorder is the mock recorder for MockIncidentRepository.
func (*MockIncidentRepositoryMockRecorder) Create ¶
func (mr *MockIncidentRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIncidentRepositoryMockRecorder) Delete ¶
func (mr *MockIncidentRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIncidentRepositoryMockRecorder) GetAll ¶
func (mr *MockIncidentRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockIncidentRepositoryMockRecorder) GetById ¶
func (mr *MockIncidentRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockIncidentRepositoryMockRecorder) GetByType ¶
func (mr *MockIncidentRepositoryMockRecorder) GetByType(arg0, arg1 interface{}) *gomock.Call
GetByType indicates an expected call of GetByType.
func (*MockIncidentRepositoryMockRecorder) Update ¶
func (mr *MockIncidentRepositoryMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockRoleRepository ¶
type MockRoleRepository struct {
// contains filtered or unexported fields
}
MockRoleRepository is a mock of RoleRepository interface.
func NewMockRoleRepository ¶
func NewMockRoleRepository(ctrl *gomock.Controller) *MockRoleRepository
NewMockRoleRepository creates a new mock instance.
func (*MockRoleRepository) Delete ¶
func (m *MockRoleRepository) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockRoleRepository) EXPECT ¶
func (m *MockRoleRepository) EXPECT() *MockRoleRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRoleRepositoryMockRecorder ¶
type MockRoleRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRoleRepositoryMockRecorder is the mock recorder for MockRoleRepository.
func (*MockRoleRepositoryMockRecorder) Create ¶
func (mr *MockRoleRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRoleRepositoryMockRecorder) Delete ¶
func (mr *MockRoleRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRoleRepositoryMockRecorder) GetAll ¶
func (mr *MockRoleRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockRoleRepositoryMockRecorder) GetById ¶
func (mr *MockRoleRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockRoleRepositoryMockRecorder) Update ¶
func (mr *MockRoleRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockStatusRepository ¶
type MockStatusRepository struct {
// contains filtered or unexported fields
}
MockStatusRepository is a mock of StatusRepository interface.
func NewMockStatusRepository ¶
func NewMockStatusRepository(ctrl *gomock.Controller) *MockStatusRepository
NewMockStatusRepository creates a new mock instance.
func (*MockStatusRepository) Create ¶
func (m *MockStatusRepository) Create(arg0 context.Context, arg1 entity.IncidentStatus) (int, error)
Create mocks base method.
func (*MockStatusRepository) Delete ¶
func (m *MockStatusRepository) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockStatusRepository) EXPECT ¶
func (m *MockStatusRepository) EXPECT() *MockStatusRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStatusRepository) GetAll ¶
func (m *MockStatusRepository) GetAll(arg0 context.Context) ([]entity.IncidentStatus, error)
GetAll mocks base method.
func (*MockStatusRepository) GetById ¶
func (m *MockStatusRepository) GetById(arg0 context.Context, arg1 int) (*entity.IncidentStatus, error)
GetById mocks base method.
func (*MockStatusRepository) Update ¶
func (m *MockStatusRepository) Update(arg0 context.Context, arg1 int, arg2 entity.IncidentStatus) error
Update mocks base method.
type MockStatusRepositoryMockRecorder ¶
type MockStatusRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockStatusRepositoryMockRecorder is the mock recorder for MockStatusRepository.
func (*MockStatusRepositoryMockRecorder) Create ¶
func (mr *MockStatusRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockStatusRepositoryMockRecorder) Delete ¶
func (mr *MockStatusRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStatusRepositoryMockRecorder) GetAll ¶
func (mr *MockStatusRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockStatusRepositoryMockRecorder) GetById ¶
func (mr *MockStatusRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockStatusRepositoryMockRecorder) Update ¶
func (mr *MockStatusRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockTokenizer ¶
type MockTokenizer struct {
// contains filtered or unexported fields
}
MockTokenizer is a mock of Tokenizer interface.
func NewMockTokenizer ¶
func NewMockTokenizer(ctrl *gomock.Controller) *MockTokenizer
NewMockTokenizer creates a new mock instance.
func (*MockTokenizer) EXPECT ¶
func (m *MockTokenizer) EXPECT() *MockTokenizerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenizer) GenerateToken ¶
GenerateToken mocks base method.
func (*MockTokenizer) ParseToken ¶
ParseToken mocks base method.
type MockTokenizerMockRecorder ¶
type MockTokenizerMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenizerMockRecorder is the mock recorder for MockTokenizer.
func (*MockTokenizerMockRecorder) GenerateToken ¶
func (mr *MockTokenizerMockRecorder) GenerateToken(ctx, id, role interface{}) *gomock.Call
GenerateToken indicates an expected call of GenerateToken.
func (*MockTokenizerMockRecorder) ParseToken ¶
func (mr *MockTokenizerMockRecorder) ParseToken(arg0, arg1 interface{}) *gomock.Call
ParseToken indicates an expected call of ParseToken.
type MockTypeRepository ¶
type MockTypeRepository struct {
// contains filtered or unexported fields
}
MockTypeRepository is a mock of TypeRepository interface.
func NewMockTypeRepository ¶
func NewMockTypeRepository(ctrl *gomock.Controller) *MockTypeRepository
NewMockTypeRepository creates a new mock instance.
func (*MockTypeRepository) Create ¶
func (m *MockTypeRepository) Create(arg0 context.Context, arg1 entity.IncidentType) (int, error)
Create mocks base method.
func (*MockTypeRepository) Delete ¶
func (m *MockTypeRepository) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockTypeRepository) EXPECT ¶
func (m *MockTypeRepository) EXPECT() *MockTypeRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTypeRepository) GetAll ¶
func (m *MockTypeRepository) GetAll(arg0 context.Context) ([]entity.IncidentType, error)
GetAll mocks base method.
func (*MockTypeRepository) GetById ¶
func (m *MockTypeRepository) GetById(arg0 context.Context, arg1 int) (*entity.IncidentType, error)
GetById mocks base method.
func (*MockTypeRepository) Update ¶
func (m *MockTypeRepository) Update(arg0 context.Context, arg1 int, arg2 entity.IncidentType) error
Update mocks base method.
type MockTypeRepositoryMockRecorder ¶
type MockTypeRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockTypeRepositoryMockRecorder is the mock recorder for MockTypeRepository.
func (*MockTypeRepositoryMockRecorder) Create ¶
func (mr *MockTypeRepositoryMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockTypeRepositoryMockRecorder) Delete ¶
func (mr *MockTypeRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTypeRepositoryMockRecorder) GetAll ¶
func (mr *MockTypeRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockTypeRepositoryMockRecorder) GetById ¶
func (mr *MockTypeRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockTypeRepositoryMockRecorder) Update ¶
func (mr *MockTypeRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update.
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) ChangeRole ¶
func (m *MockUserRepository) ChangeRole(arg0 context.Context, arg1, arg2 int) error
ChangeRole mocks base method.
func (*MockUserRepository) Delete ¶
func (m *MockUserRepository) Delete(arg0 context.Context, arg1 int) error
Delete mocks base method.
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.
func (*MockUserRepositoryMockRecorder) ChangeRole ¶
func (mr *MockUserRepositoryMockRecorder) ChangeRole(arg0, arg1, arg2 interface{}) *gomock.Call
ChangeRole indicates an expected call of ChangeRole.
func (*MockUserRepositoryMockRecorder) Delete ¶
func (mr *MockUserRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserRepositoryMockRecorder) GetAll ¶
func (mr *MockUserRepositoryMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockUserRepositoryMockRecorder) GetById ¶
func (mr *MockUserRepositoryMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockUserRepositoryMockRecorder) Update ¶
func (mr *MockUserRepositoryMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update.