Documentation
¶
Index ¶
Constants ¶
View Source
const ( VIDEO_CUT = "video:cut" VIDEO_ENCODE = "video:encode" VIDEO_MERGE = "video:merge" )
task types, note that video: can get video:xxx:xxx format task type
View Source
const ( TASK_STATUS_PENDING = "pending" TASK_STATUS_RUNNING = "running" TASK_STATUS_COMPLETED = "completed" )
Variables ¶
This section is empty.
Functions ¶
func GetEncodeQueueName ¶
GetEncodeQueueName 获取队列名称,如果没有则返回默认队列(低优先级)
Types ¶
type CutTaskPayload ¶
CutTaskPayload is a struct that represents the payload for cut task.
type EncodeTaskPayload ¶
type EncodeTaskPayload struct {
EncodeParam string `json:"encode_param"`
Script string `json:"script"`
Clip db.VideoClipInfo `json:"clip"`
Retry bool `json:"retry"`
}
EncodeTaskPayload is a struct that represents the payload for encode task.
type MergeTaskPayload ¶
type MergeTaskPayload struct {
VideoKey string `json:"video_key"`
}
MergeTaskPayload is a struct that represents the payload for merge task.
Click to show internal directories.
Click to hide internal directories.