Documentation
¶
Index ¶
- type JobController
- func (c *JobController) MarkAsFinished(ctx context.Context, model models.DBModel, jobID int)
- func (c *JobController) Run(ctx context.Context, model models.DBModel) error
- func (c *JobController) RunReporter(ctx context.Context, model *models.DBModel) error
- func (c *JobController) UpdateJobStatus(ctx context.Context, model models.DBModel, jobStatus jobstatus.JobStatus)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobController ¶
type JobController struct {
// contains filtered or unexported fields
}
JobController is a struct that contains the configuration and the job model
func NewJobController ¶
constructor for JobController
func (*JobController) MarkAsFinished ¶
MarkAsFinished marks the job as finished
func (*JobController) RunReporter ¶
func (*JobController) UpdateJobStatus ¶
func (c *JobController) UpdateJobStatus(ctx context.Context, model models.DBModel, jobStatus jobstatus.JobStatus)
UpdateJobStatus updates the status of the job
Click to show internal directories.
Click to hide internal directories.