mirror of
https://github.com/samuelncui/acp.git
synced 2025-12-23 05:05:15 +00:00
feat: add consts
This commit is contained in:
16
job.go
16
job.go
@@ -16,15 +16,21 @@ const (
|
|||||||
jobStatusCopying
|
jobStatusCopying
|
||||||
jobStatusFinishing
|
jobStatusFinishing
|
||||||
jobStatusFinished
|
jobStatusFinished
|
||||||
|
|
||||||
|
JobStatusPending = "pending"
|
||||||
|
JobStatusPreparing = "preparing"
|
||||||
|
JobStatusCopying = "copying"
|
||||||
|
JobStatusFinishing = "finishing"
|
||||||
|
JobStatusFinished = "finished"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
statusMapping = map[jobStatus]string{
|
statusMapping = map[jobStatus]string{
|
||||||
jobStatusPending: "pending",
|
jobStatusPending: JobStatusPending,
|
||||||
jobStatusPreparing: "preparing",
|
jobStatusPreparing: JobStatusPreparing,
|
||||||
jobStatusCopying: "copying",
|
jobStatusCopying: JobStatusCopying,
|
||||||
jobStatusFinishing: "finishing",
|
jobStatusFinishing: JobStatusFinishing,
|
||||||
jobStatusFinished: "finished",
|
jobStatusFinished: JobStatusFinished,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user