Documentation ¶
Index ¶
- type Downloader
- func (d *Downloader) Download() error
- func (d *Downloader) Downloadts(segIndex int) error
- func (d *Downloader) FfmpegFiles() (string, error)
- func (d *Downloader) Finished() bool
- func (d *Downloader) Merge() error
- func (d *Downloader) RemoveTmp() error
- func (d *Downloader) Start(concurrency int) error
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
func NewTask ¶
func NewTask(filePath, tsFolder string, url string) (*Downloader, error)
NewTask returns a Task instance
func (*Downloader) Downloadts ¶
func (d *Downloader) Downloadts(segIndex int) error
func (*Downloader) FfmpegFiles ¶
func (d *Downloader) FfmpegFiles() (string, error)
func (*Downloader) Finished ¶
func (d *Downloader) Finished() bool
func (*Downloader) Merge ¶
func (d *Downloader) Merge() error
func (*Downloader) RemoveTmp ¶
func (d *Downloader) RemoveTmp() error
Click to show internal directories.
Click to hide internal directories.