actions

package module
v0.0.0-...-818df93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(x int, y int) int

Max returns the larger of x or y.

Types

type Downloader

type Downloader struct {
	URL             string            `json:"url"`
	Started         *time.Time        `json:"started"`
	Completed       *time.Time        `json:"completed"`
	Running         bool              `json:"running"`
	Done            bool              `json:"done"`
	FindCmd         *cmd.Cmd          `json:"-"`
	StatusChan      <-chan cmd.Status `json:"-"`
	Ticker          *time.Ticker      `json:"-"`
	StdOut          []string          `json:"std_out"`
	StdErr          []string          `json:"std_err"`
	Error           bool              `json:"error"`
	Filename        *string           `json:"filename"`
	AudioETA        *string           `json:"audio_eta"`
	VideoETA        *string           `json:"video_eta"`
	AudioDownloaded bool              `json:"audio_ready"`
	VideoDownloaded bool              `json:"video_ready"`
	AudioStarted    bool              `json:"-"`
	VideoStarted    bool              `json:"-"`
	FullStdErr      []string          `json:"-"`
}

Downloader struct containing info regarding a executable command

func AddDownload

func AddDownload(url string) Downloader

AddDownload ..

func DownloadsAll

func DownloadsAll() []Downloader

DownloadsAll to retrive all downloders

func (*Downloader) Start

func (d *Downloader) Start()

Start to start download

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址