Download accelerator that supports fetching a file from multiple sources concurrently.
i.e., no need to have Go installed locally
$ make deps
$ make fmt
$ make test
$ make build target={target OS}
- generates
msdl
insidebin/
directory - possible values for
target
can be found here - example:
make build target=linux
Running msdl
(after generating it using make build
):
msdl [flags...] [space-delimited URLs...]
$ ./msdl -f destfile.txt http://source1.com/a.txt http://source2.com/a.txt http://source3.com/a.txt
- downloads
a.txt
from 3 different sources concurrently and saves it to a local file nameddestfile.txt
- note: the filenames can be different in the sources as long as they are effectively the same file
-c, --connections uint max number of concurrent connections [optional; default 5]
--etag check ETag match (using MD5 hash of downloaded file) if available [optional; default false]
-f, --file string destination file path [required for download]
-h, --help help for msdl
-q, --quiet disable logging to stdout [optional; default false]
-t, --timeout uint timeout for each connection in seconds [optional; default 10]