ranget

command module
v0.0.0-...-02cb460 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Unlicense Imports: 10 Imported by: 0

README

ranget

ranget (pronounced rang-et or range-et (I say the latter) or ran-jay if you're Frenchish, I suppose) is a CLI tool that fetches the --url-specified file over HTTP/S using the HTTP RANGE spec to download --size chunks of the file asynchonously using the --max number of workers. When not --debugging, there is a nice progress bar that also calculates the throughput of the workers. If the requested server does not support ranged requests, the file is downloaded "normally".

ranget is an example driver for rangetripper which you can use directly.

Usage

      --debug              Enable debugging output (disables progress bar)
      --max int            Maximum number of simultaneous downloaders (default 10)
      --out string         Where to write it it (default "./afile")
      --size string        Size of chunks to download (whole-numbers with suffixes of B,KB,MB,GB,PB) (default "10MB")
      --timeout duration   Set a general timeout for the download (default 1m0s)
      --trash              Delete the file after downloading (e.g. if benchmarking, etc.)
      --url string         What to fetch

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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