mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 08:16:43 +00:00
update
This commit is contained in:
14
src/util.go
14
src/util.go
@@ -8,6 +8,20 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
const (
|
||||
Created = 0
|
||||
Starting = 1
|
||||
Running = 2
|
||||
Stopped = 3
|
||||
Finished = 4
|
||||
)
|
||||
|
||||
type MsgJobList struct {
|
||||
Code int `json:"code"`
|
||||
Error string `json:"error"`
|
||||
Jobs []*Job `json:"jobs"`
|
||||
}
|
||||
|
||||
type MsgLog struct {
|
||||
Code int `json:"code"`
|
||||
Error string `json:"error"`
|
||||
|
||||
Reference in New Issue
Block a user