Documentation
¶
Index ¶
- type EmployeeParserIface
- type EmployeeRepoIface
- func (_m *EmployeeRepoIface) GetEmployeeByID(ctx context.Context, identifier int) (models.Employee, error)
- func (_m *EmployeeRepoIface) SaveEmployee(ctx context.Context, identifier int, fullname string, shortname string, ...) error
- func (_m *EmployeeRepoIface) UpdateEmployee(ctx context.Context, identifier int, fullname string, shortname string, ...) error
- type StatusRepoIface
- type TaskRepoIface
- func (_m *TaskRepoIface) GetOrCreateTaskTypeID(ctx context.Context, typeName string) (int, error)
- func (_m *TaskRepoIface) SaveTaskData(ctx context.Context, task models.Task) error
- func (_m *TaskRepoIface) UpdateTaskExecutors(ctx context.Context, taskID int, executors []string) error
- func (_m *TaskRepoIface) UpsertTask(ctx context.Context, task models.Task, typeID int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmployeeParserIface ¶
EmployeeParserIface is an autogenerated mock type for the EmployeeParserIface type
func NewEmployeeParserIface ¶
func NewEmployeeParserIface(t interface {
mock.TestingT
Cleanup(func())
}) *EmployeeParserIface
NewEmployeeParserIface creates a new instance of EmployeeParserIface. 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 (*EmployeeParserIface) ParseEmployees ¶
ParseEmployees provides a mock function with given fields: ctx
type EmployeeRepoIface ¶
EmployeeRepoIface is an autogenerated mock type for the EmployeeRepoIface type
func NewEmployeeRepoIface ¶
func NewEmployeeRepoIface(t interface {
mock.TestingT
Cleanup(func())
}) *EmployeeRepoIface
NewEmployeeRepoIface creates a new instance of EmployeeRepoIface. 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 (*EmployeeRepoIface) GetEmployeeByID ¶
func (_m *EmployeeRepoIface) GetEmployeeByID(ctx context.Context, identifier int) (models.Employee, error)
GetEmployeeByID provides a mock function with given fields: ctx, identifier
func (*EmployeeRepoIface) SaveEmployee ¶
func (_m *EmployeeRepoIface) SaveEmployee(ctx context.Context, identifier int, fullname string, shortname string, position string, email string, phone string) error
SaveEmployee provides a mock function with given fields: ctx, identifier, fullname, shortname, position, email, phone
func (*EmployeeRepoIface) UpdateEmployee ¶
func (_m *EmployeeRepoIface) UpdateEmployee(ctx context.Context, identifier int, fullname string, shortname string, position string, email string, phone string) error
UpdateEmployee provides a mock function with given fields: ctx, identifier, fullname, shortname, position, email, phone
type StatusRepoIface ¶
StatusRepoIface is an autogenerated mock type for the StatusRepoIface type
func NewStatusRepoIface ¶
func NewStatusRepoIface(t interface {
mock.TestingT
Cleanup(func())
}) *StatusRepoIface
NewStatusRepoIface creates a new instance of StatusRepoIface. 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 (*StatusRepoIface) GetLastProcessedDate ¶
GetLastProcessedDate provides a mock function with given fields: ctx
func (*StatusRepoIface) SaveProcessedDate ¶
SaveProcessedDate provides a mock function with given fields: ctx, date
type TaskRepoIface ¶
TaskRepoIface is an autogenerated mock type for the TaskRepoIface type
func NewTaskRepoIface ¶
func NewTaskRepoIface(t interface {
mock.TestingT
Cleanup(func())
}) *TaskRepoIface
NewTaskRepoIface creates a new instance of TaskRepoIface. 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 (*TaskRepoIface) GetOrCreateTaskTypeID ¶
GetOrCreateTaskTypeID provides a mock function with given fields: ctx, typeName
func (*TaskRepoIface) SaveTaskData ¶
SaveTaskData provides a mock function with given fields: ctx, task
func (*TaskRepoIface) UpdateTaskExecutors ¶
func (_m *TaskRepoIface) UpdateTaskExecutors(ctx context.Context, taskID int, executors []string) error
UpdateTaskExecutors provides a mock function with given fields: ctx, taskID, executors
func (*TaskRepoIface) UpsertTask ¶
UpsertTask provides a mock function with given fields: ctx, task, typeID