Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusPending = "pending" StatusRunning = "running" StatusStopped = "stopped" StatusFailed = "failed" StatusSuccess = "success" )
Variables ¶
View Source
var Statuses = map[string]string{ StatusPending: StatusPending, StatusRunning: StatusRunning, StatusStopped: StatusStopped, StatusFailed: StatusFailed, StatusSuccess: StatusSuccess, }
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct { ID int `json:"id"` Name string `json:"name"` Type string `json:"type"` UserID int `json:"user_id"` Status string `json:"status"` Output []byte `json:"output"` Input []byte `json:"input"` FileSize *int64 `json:"file_size" gorm:"-"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.