Documentation ¶
Index ¶
- type Job
- type JobHistoryRepository
- type JobService
- type JobStatus
- type JobStatusRepository
- func (_m *JobStatusRepository) AddJobStatus(ctx context.Context, job service.Job) (domain.JobStatusID, error)
- func (_m *JobStatusRepository) FindJobStatusByJobName(ctx context.Context, jobName domain.JobName) ([]service.JobStatus, error)
- func (_m *JobStatusRepository) RemoveExpiredJobStatus(ctx context.Context) (int, error)
- func (_m *JobStatusRepository) RemoveJobStatus(ctx context.Context, jobStatusID domain.JobStatusID) error
- type RepositoryFactory
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
Job is an autogenerated mock type for the Job type
func NewJob ¶
NewJob creates a new instance of Job. It also registers a cleanup function to assert the mocks expectations.
func (*Job) GetJobParameter ¶
GetJobParameter provides a mock function with given fields:
func (*Job) GetTimeout ¶
GetTimeout provides a mock function with given fields:
func (*Job) IsAllowedConcurrentExecution ¶
IsAllowedConcurrentExecution provides a mock function with given fields:
type JobHistoryRepository ¶
JobHistoryRepository is an autogenerated mock type for the JobHistoryRepository type
func NewJobHistoryRepository ¶
func NewJobHistoryRepository(t testing.TB) *JobHistoryRepository
NewJobHistoryRepository creates a new instance of JobHistoryRepository. It also registers a cleanup function to assert the mocks expectations.
func (*JobHistoryRepository) AddJobHistory ¶
func (_m *JobHistoryRepository) AddJobHistory(ctx context.Context, param service.JobHistoryAddParameter) error
AddJobHistory provides a mock function with given fields: ctx, param
func (*JobHistoryRepository) FindJobHistoryByJobName ¶
func (_m *JobHistoryRepository) FindJobHistoryByJobName(ctx context.Context, jobName domain.JobName) (service.JobHistory, error)
FindJobHistoryByJobName provides a mock function with given fields: ctx, jobName
type JobService ¶
JobService is an autogenerated mock type for the JobService type
func NewJobService ¶
func NewJobService(t testing.TB) *JobService
NewJobService creates a new instance of JobService. It also registers a cleanup function to assert the mocks expectations.
func (*JobService) CleanOldJobs ¶
func (_m *JobService) CleanOldJobs(ctx context.Context) error
CleanOldJobs provides a mock function with given fields: ctx
type JobStatus ¶
JobStatus is an autogenerated mock type for the JobStatus type
func NewJobStatus ¶
NewJobStatus creates a new instance of JobStatus. It also registers a cleanup function to assert the mocks expectations.
func (*JobStatus) GetJobName ¶
GetJobName provides a mock function with given fields:
func (*JobStatus) GetJobParameter ¶
GetJobParameter provides a mock function with given fields:
func (*JobStatus) GetJobStatusID ¶
func (_m *JobStatus) GetJobStatusID() domain.JobStatusID
GetJobStatusID provides a mock function with given fields:
type JobStatusRepository ¶
JobStatusRepository is an autogenerated mock type for the JobStatusRepository type
func NewJobStatusRepository ¶
func NewJobStatusRepository(t testing.TB) *JobStatusRepository
NewJobStatusRepository creates a new instance of JobStatusRepository. It also registers a cleanup function to assert the mocks expectations.
func (*JobStatusRepository) AddJobStatus ¶
func (_m *JobStatusRepository) AddJobStatus(ctx context.Context, job service.Job) (domain.JobStatusID, error)
AddJobStatus provides a mock function with given fields: ctx, job
func (*JobStatusRepository) FindJobStatusByJobName ¶
func (_m *JobStatusRepository) FindJobStatusByJobName(ctx context.Context, jobName domain.JobName) ([]service.JobStatus, error)
FindJobStatusByJobName provides a mock function with given fields: ctx, jobName
func (*JobStatusRepository) RemoveExpiredJobStatus ¶
func (_m *JobStatusRepository) RemoveExpiredJobStatus(ctx context.Context) (int, error)
RemoveExpiredJobStatus provides a mock function with given fields: ctx
func (*JobStatusRepository) RemoveJobStatus ¶
func (_m *JobStatusRepository) RemoveJobStatus(ctx context.Context, jobStatusID domain.JobStatusID) error
RemoveJobStatus provides a mock function with given fields: ctx, jobStatusID
type RepositoryFactory ¶
RepositoryFactory is an autogenerated mock type for the RepositoryFactory type
func NewRepositoryFactory ¶
func NewRepositoryFactory(t testing.TB) *RepositoryFactory
NewRepositoryFactory creates a new instance of RepositoryFactory. It also registers a cleanup function to assert the mocks expectations.
func (*RepositoryFactory) NewJobHistoryRepository ¶
func (_m *RepositoryFactory) NewJobHistoryRepository(ctx context.Context) service.JobHistoryRepository
NewJobHistoryRepository provides a mock function with given fields: ctx
func (*RepositoryFactory) NewJobStatusRepository ¶
func (_m *RepositoryFactory) NewJobStatusRepository(ctx context.Context) service.JobStatusRepository
NewJobStatusRepository provides a mock function with given fields: ctx
type Transaction ¶
Transaction is an autogenerated mock type for the Transaction type
func NewTransaction ¶
func NewTransaction(t testing.TB) *Transaction
NewTransaction creates a new instance of Transaction. It also registers a cleanup function to assert the mocks expectations.
func (*Transaction) Do ¶
func (_m *Transaction) Do(ctx context.Context, fn func(service.RepositoryFactory) error) error
Do provides a mock function with given fields: ctx, fn