wgetpipe

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 20 Imported by: 0

README

wgetpipe

Wgetpipe takes a list of fully-qualified URLs over STDIN and Gets them, outputting the code, url and elapsed fetch time.

It scans STDIN, spawning up to -max getters at a time, which stream their responses back to the collator to format the output. This tool was generated to aid in seeding pull-through caches, but has utility in othere areas as well

Usage

  -bar
    	Use progress bar instead of printing lines, can still use -stats
  -debug
    	Enable debug output
  -errorsonly
    	Only output errors (HTTP Codes >= 400)
  -guess int
    	Rough guess of how many GETs will be coming for -bar to start at. It will adjust
  -max int
    	Maximium in-flight GET requests at a time (default 5)
  -nocolor
    	Don't colorize the output
  -nodnscache
    	Disable DNS caching
  -responsedebug
    	Enable full response output if debugging is on
  -save
    	Save the content of the files. Into hostname/folders/file.ext files
  -sleep duration
    	Amount of time to sleep between spawning a GETter (e.g. 1ms, 10s)
  -stats
    	Output stats at the end
  -timeout duration
    	Amount of time to allow each GET request (e.g. 30s, 5m)

Licensing

MIT

Thank you to SpatialKey for allowing this tool to be released, as it was initially developed for them.

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