Use database status and health, calculate md5
This commit is contained in:
parent
806f6e7e61
commit
78d818b8d1
7 changed files with 112 additions and 37 deletions
|
@ -7,18 +7,20 @@ import (
|
|||
)
|
||||
|
||||
type TaskStart struct {
|
||||
ID int `json:"id"`
|
||||
FileID int `json:"file_id"`
|
||||
Type int `json:"type"`
|
||||
Data json.RawMessage
|
||||
ID int `json:"id"`
|
||||
FileID int `json:"file_id"`
|
||||
FileMD5 []byte `json:"file_md5"`
|
||||
Type int `json:"type"`
|
||||
Data json.RawMessage
|
||||
}
|
||||
|
||||
type Task struct {
|
||||
ID int `json:"id"`
|
||||
FileID int `json:"file_id"`
|
||||
Type int `json:"type"`
|
||||
Status constants.TaskStatus `json:"status"`
|
||||
Log []string `json:"log"`
|
||||
ID int `json:"id"`
|
||||
FileID int `json:"file_id"`
|
||||
FileMD5 []byte `json:"md5"`
|
||||
Type int `json:"type"`
|
||||
Status constants.TaskStatus `json:"status"`
|
||||
Log []string `json:"log"`
|
||||
}
|
||||
|
||||
type TaskStatus struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue