-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change default number of workers from 30 -> 1, explicitly ask for par…
…allelism
- Loading branch information
Showing
4 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,41 +42,44 @@ to install in your `$GOPATH/bin` (which you want in your `$PATH`) | |
|
||
# Usage | ||
|
||
$ ganda help | ||
NAME: | ||
ganda | ||
|
||
USAGE: | ||
ganda [options] [file of urls] OR <urls on stdout> | ganda [options] | ||
|
||
VERSION: | ||
0.1.3 | ||
|
||
DESCRIPTION: | ||
Pipe urls to ganda over stdout or give it a file with one url per line for it to make http requests to each url in parallel | ||
|
||
AUTHOR: | ||
Ted Naleid <[email protected]> | ||
|
||
COMMANDS: | ||
help, h Shows a list of commands or help for one command | ||
|
||
GLOBAL OPTIONS: | ||
--output value, -o value the output base directory to save downloaded files, if omitted will stream response bodies to stdout | ||
--request value, -X value HTTP request method to use (default: "GET") | ||
--header value, -H value headers to send with every request, can be used multiple times (gzip and keep-alive are already there) | ||
--workers value, -W value number of concurrent workers that will be making requests (default: 30) | ||
--response-workers value number of concurrent workers that will be processing responses, if not specified will be same as --workers (default: 0) | ||
--subdir-length value, -S value length of hashed subdirectory name to put saved files when using -o; use 2 for > 5k urls, 4 for > 5M urls (default: 0) | ||
--connect-timeout value number of seconds to wait for a connection to be established before timeout (default: 10) | ||
--throttle value, -t value max number of requests to process per second, default is unlimited (default: -1) | ||
--insecure, -k if flag is present, skip verification of https certificates | ||
--silent, -s if flag is present, omit showing response code for each url only output response bodies | ||
--no-color if flag is present, don't add color to success/warn messages | ||
--json-envelope EXPERIMENTAL: if flag is present, emit result with JSON envelope with url, status, length, and body fields, assumes result is valid json | ||
--retry value max number of retries on transient errors (5XX status codes/timeouts) to attempt (default: 0) | ||
--help, -h show help | ||
--version, -v print the version | ||
ganda help | ||
NAME: | ||
ganda | ||
|
||
USAGE: | ||
ganda [options] [file of urls/requests] OR <urls/requests on stdout> | ganda [options] | ||
|
||
VERSION: | ||
1.7 | ||
|
||
DESCRIPTION: | ||
Pipe urls to ganda over stdout or give it a file with one url per line for it to make http requests to each url in parallel. | ||
|
||
AUTHOR: | ||
Ted Naleid <[email protected]> | ||
|
||
COMMANDS: | ||
help, h Shows a list of commands or help for one command | ||
|
||
GLOBAL OPTIONS: | ||
--output value, -o value the output base directory to save downloaded files, if omitted will stream response bodies to stdout | ||
--request value, -X value HTTP request method to use (default: "GET") | ||
--header value, -H value headers to send with every request, can be used multiple times (gzip and keep-alive are already there) | ||
--data-template value, -d value template string (or literal string) for the body, can use %s placeholders that will be replaced by fields 1..N from the input (all fields on a line after the url), '%%' can be used to insert a single percent symbol | ||
--workers value, -W value number of concurrent workers that will be making requests, increase this for more requests in parallel (default: 1) | ||
--response-workers value number of concurrent workers that will be processing responses, if not specified will be same as --workers (default: 0) | ||
--subdir-length value, -S value length of hashed subdirectory name to put saved files when using -o; use 2 for > 5k urls, 4 for > 5M urls (default: 0) | ||
--connect-timeout value number of seconds to wait for a connection to be established before timeout (default: 10) | ||
--throttle value, -t value max number of requests to process per second, default is unlimited (default: -1) | ||
--insecure, -k if flag is present, skip verification of https certificates | ||
--silent, -s if flag is present, omit showing response code for each url only output response bodies | ||
--no-color if flag is present, don't add color to success/warn messages | ||
--json-envelope EXPERIMENTAL: emit result with JSON envelope with url, status, length, and body fields, assumes result is valid json | ||
--hash-body EXPERIMENTAL: instead of emitting full body in JSON, emit the SHA256 of the bytes of the body, useful for checksums, only has meaning with --json-envelope flag | ||
--discard-body EXPERIMENTAL: instead of emitting full body, just discard it | ||
--retry value max number of retries on transient errors (5XX status codes/timeouts) to attempt (default: 0) | ||
--help, -h show help | ||
--version, -v print the version | ||
# Example | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters