Documentation ¶
Index ¶
- Variables
- func Listen(ctx global.Context)
- type RmqResult
- type Task
- func (t *Task) Completed() bool
- func (t *Task) Done() <-chan struct{}
- func (t *Task) Events() <-chan TaskEvent
- func (t *Task) Failed() error
- func (t *Task) Files() []job.File
- func (t *Task) ID() uuid.UUID
- func (t *Task) Job() job.Job
- func (t *Task) Start(ctx global.Context)
- func (t *Task) Started() bool
- func (t *Task) Stop()
- func (t *Task) Stopped() bool
- type TaskEvent
- type TaskEventType
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownJobProvider = fmt.Errorf("unknown job provider")
Functions ¶
Types ¶
type TaskEventType ¶
type TaskEventType string
const ( Started TaskEventType = "started" Downloaed TaskEventType = "downloaded" Failed TaskEventType = "failed" Completed TaskEventType = "completed" Stopped TaskEventType = "stopped" Cleaned TaskEventType = "cleaned" StageOne TaskEventType = "stage-one" StageOneComplete TaskEventType = "stage-one-complete" StageTwo TaskEventType = "stage-two" StageTwoComplete TaskEventType = "stage-two-complete" StageThree TaskEventType = "stage-three" StageThreeComplete TaskEventType = "stage-three-complete" )
Click to show internal directories.
Click to hide internal directories.