Documentation ¶
Index ¶
- type Job
- type PreviewQueue
- func (p *PreviewQueue) Add(job *Job)
- func (p *PreviewQueue) GetVideoHLSAndSubByTimeRangeExportPathInfo(videoFullPath string, subFullPaths []string, ...) (string, []string, error)
- func (p *PreviewQueue) IsJobInQueue(job *Job) bool
- func (p *PreviewQueue) JobResult(job *Job) string
- func (p *PreviewQueue) ListJob() []*Job
- type Reply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreviewQueue ¶
type PreviewQueue struct {
// contains filtered or unexported fields
}
func NewPreviewQueue ¶
func NewPreviewQueue(log *logrus.Logger) *PreviewQueue
func (*PreviewQueue) GetVideoHLSAndSubByTimeRangeExportPathInfo ¶
func (p *PreviewQueue) GetVideoHLSAndSubByTimeRangeExportPathInfo(videoFullPath string, subFullPaths []string, startTimeString, timeLength string) (string, []string, error)
GetVideoHLSAndSubByTimeRangeExportPathInfo 获取视频的HLS和字幕的导出路径信息
func (*PreviewQueue) IsJobInQueue ¶
func (p *PreviewQueue) IsJobInQueue(job *Job) bool
IsJobInQueue 是否正在队列中排队,或者正在被处理
func (*PreviewQueue) JobResult ¶
func (p *PreviewQueue) JobResult(job *Job) string
JobResult 任务结果,如果成功 ok,如果没有就是空,其他就是错误信息
Click to show internal directories.
Click to hide internal directories.