Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aria2 ¶
type Aria2 struct { // Allow to set a custom HTTP transport (for test purposes) CustomTransport http.RoundTripper // contains filtered or unexported fields }
Aria2 is a downloader interface for aria2 see https://aria2.github.io/manual/en/html/aria2c.html#methods for more infos
type Downloader ¶
type Downloader interface { Auth(infos map[string]interface{}) error Download(uri string, options map[string]interface{}) (string, error) DownloadStatus(downloadID string) (map[string]interface{}, error) }
Downloader takes uri and download them
func NewDownloader ¶
func NewDownloader(name string, authInfos map[string]interface{}) (Downloader, error)
NewDownloader returns a new authenticated downloader
Click to show internal directories.
Click to hide internal directories.