24 lines
462 B
Go
24 lines
462 B
Go
package task
|
|
|
|
import (
|
|
"time"
|
|
|
|
"trle5.xyz/upscayl-server/upscayl"
|
|
)
|
|
|
|
type Task struct {
|
|
ID string `json:"id"`
|
|
Status Status `json:"status"`
|
|
Error string `json:"error,omitempty"`
|
|
Submit time.Time `json:"submit"`
|
|
Elapsed int `json:"elapsed,omitempty"`
|
|
|
|
Size int64 `json:"size,omitempty"`
|
|
Format string `json:"format,omitempty"`
|
|
URL string `json:"url,omitempty"`
|
|
|
|
Hash string `json:"-"`
|
|
|
|
Params upscayl.Params `json:"-"`
|
|
}
|