Documentation
¶
Index ¶
- func CancelTask(taskID string)
- func Clear(c *gin.Context)
- func HandleRetryEncode(req RetryEncodeRequest, clip db.VideoClipInfo) error
- func HandleRetryMerge(req RetryMergeRequest) error
- func HandleStart(req StartRequest)
- func List(c *gin.Context)
- func New(c *gin.Context)
- func OSSPresigned(c *gin.Context)
- func Progress(c *gin.Context)
- func RetryEncode(c *gin.Context)
- func RetryMerge(c *gin.Context)
- func Start(c *gin.Context)
- type ClearRequest
- type ListItem
- type ListRequest
- type ListResponse
- type NewRequest
- type OSSPresignedRequest
- type OSSPresignedResponse
- type ProgressRequest
- type ProgressResponse
- type RetryEncodeRequest
- type RetryMergeRequest
- type StartRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleRetryEncode ¶
func HandleRetryEncode(req RetryEncodeRequest, clip db.VideoClipInfo) error
func HandleRetryMerge ¶
func HandleRetryMerge(req RetryMergeRequest) error
func OSSPresigned ¶
OSSPresigned 获取 OSS 上传 URL (GET /oss/presigned)
Types ¶
type ClearRequest ¶
type ClearRequest struct {
VideoKey string `form:"video_key" binding:"required"`
}
type ListRequest ¶
type ListResponse ¶
type ListResponse []ListItem
type NewRequest ¶
type NewRequest struct {
VideoKey string `form:"video_key" binding:"required"`
}
type OSSPresignedRequest ¶
type OSSPresignedRequest struct {
VideoKey string `form:"video_key" binding:"required"`
}
type OSSPresignedResponse ¶
type ProgressRequest ¶
type ProgressRequest struct {
VideoKey string `form:"video_key" binding:"required"`
}
type ProgressResponse ¶
type ProgressResponse struct {
CreateAt int64 `json:"create_at"`
EncodeKey string `json:"encode_key"`
EncodeParam string `json:"encode_param"`
EncodeSize string `json:"encode_size"`
EncodeURL string `json:"encode_url"`
Key string `json:"key"`
Progress []db.VideoProgressITEM `json:"progress"`
Script string `json:"script"`
Size string `json:"size"`
Status string `json:"status"`
URL string `json:"url"`
}
type RetryEncodeRequest ¶
type RetryMergeRequest ¶
type RetryMergeRequest struct {
VideoKey string `form:"video_key" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.