Documentation
¶
Index ¶
- type Job
- type JobManager
- func (jm *JobManager) AddJob(jobID string, monster models.Monster, store *store.Store)
- func (jm *JobManager) CommitJobDataToStore(jobID string) int
- func (jm *JobManager) GetJobs() []models.Job
- func (jm *JobManager) StartWorkerPool(workerCount int)
- func (jm *JobManager) StopWorkerPool()
- func (jm *JobManager) UpdateJobState(jobID string, newState JobState, id int)
- type JobState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobManager ¶
type JobManager struct {
// contains filtered or unexported fields
}
JobManager manages the jobs
func (*JobManager) CommitJobDataToStore ¶
func (jm *JobManager) CommitJobDataToStore(jobID string) int
CommitJobDataToStore commits the job data to the store and returns the asset ID
func (*JobManager) GetJobs ¶
func (jm *JobManager) GetJobs() []models.Job
GetJobs returns the list of jobs
func (*JobManager) StartWorkerPool ¶
func (jm *JobManager) StartWorkerPool(workerCount int)
func (*JobManager) StopWorkerPool ¶
func (jm *JobManager) StopWorkerPool()
func (*JobManager) UpdateJobState ¶
func (jm *JobManager) UpdateJobState(jobID string, newState JobState, id int)
UpdateJobState updates the state of the job
Click to show internal directories.
Click to hide internal directories.