Ai
2 Star 0 Fork 0

mangenotwork/commander

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
enum.go 617 Bytes
Copy Edit Raw Blame History
mangenotwork authored 2022-11-14 17:55 +08:00 . .
package enum
const SlaveVersion = "v0.2"
const (
TaskStateRun TaskState = 1
TaskStateComplete TaskState = 2
TaskStateBreakOff TaskState = 3
)
// TaskState 任务状态
type TaskState int
func (t TaskState) Str()string{
return TaskStateMap[t]
}
func (t TaskState) Value()int{
return int(t)
}
var TaskStateMap = map[TaskState]string{
TaskStateRun: "任务执行中",
TaskStateComplete: "任务执行完成",
TaskStateBreakOff: "任务执行被中断",
}
// 任务执行中标识
const ExecutableStateExecuting = "executing"
// 任务执行停止标识
const ExecutableStateDiscontinued = "discontinued"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mangenotework/commander.git
git@gitee.com:mangenotework/commander.git
mangenotework
commander
commander
5893fcd6005c

Search