option

package
v0.0.0-...-a6ec481 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package option gathers some of the options that the aria2 client (and the daemon) may take in argument. Full list on https://aria2.github.io/manual/en/html/aria2c.html#id2

For a custom option, simply do argo.Option{"key": "value"}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(dir string) argo.Option

Dir sets the directory to store the downloaded file.

func Dst

func Dst(fullpath string) argo.Option

Dst sets the destination file (combination of Dir and Out).

func Out

func Out(file string) argo.Option

Out sets the file name of the downloaded file. It is always relative to the directory given in --dir option. When the --force-sequential option is used, this option is ignored.

Note: You cannot specify a file name for Metalink or BitTorrent downloads. The file name specified here is only used when the URIs fed to aria2 are given on the command line directly, but not when using --input-file, --force-sequential option.

Types

This section is empty.

Source Files

  • option.go

Jump to

Keyboard shortcuts

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