move ffmpeg command to seperate table
This commit is contained in:
parent
72dfd2408f
commit
cdeb266e38
20 changed files with 245 additions and 84 deletions
|
@ -1,5 +1,4 @@
|
|||
package types
|
||||
|
||||
type HealthCheckData struct {
|
||||
Command FFmpegCommand `json:"command"`
|
||||
}
|
||||
|
|
|
@ -7,20 +7,22 @@ import (
|
|||
)
|
||||
|
||||
type TaskStart struct {
|
||||
ID int `json:"id"`
|
||||
FileID int `json:"file_id"`
|
||||
FileMD5 []byte `json:"file_md5"`
|
||||
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
|
||||
FfmpegCommand FFmpegCommand `json:"ffmpeg_command"`
|
||||
}
|
||||
|
||||
type Task struct {
|
||||
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"`
|
||||
ID int `json:"id"`
|
||||
FileID int `json:"file_id"`
|
||||
FileMD5 []byte `json:"md5"`
|
||||
Type int `json:"type"`
|
||||
Status constants.TaskStatus `json:"status"`
|
||||
FfmpegCommand FFmpegCommand `json:"ffmpeg_command"`
|
||||
Log []string `json:"log"`
|
||||
}
|
||||
|
||||
type TaskStatus struct {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
package types
|
||||
|
||||
type TranscodeData struct {
|
||||
Command FFmpegCommand `json:"command"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue