Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soh335/proxy-collector
throw clone request to multiple host and collect responses as json.
https://github.com/soh335/proxy-collector
Last synced: 15 days ago
JSON representation
throw clone request to multiple host and collect responses as json.
- Host: GitHub
- URL: https://github.com/soh335/proxy-collector
- Owner: soh335
- License: other
- Created: 2015-04-24T06:42:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-24T07:38:47.000Z (over 9 years ago)
- Last Synced: 2024-10-11T21:11:50.905Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 164 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![wercker status](https://app.wercker.com/status/502464e21d5481a3704b3054ac24c8f7/s "wercker status")](https://app.wercker.com/project/bykey/502464e21d5481a3704b3054ac24c8f7)
# proxy-collector
throw clone request to multiple host and collect responses as json.
## INSTALL
```
$ go get github.com/soh335/proxy-collector/...
```## USAGE
```
$ proxy-collector -config config.json -host 127.0.0.1 -port 7423
$ curl -s 127.0.0.1:7243/ping | jq . # => (http://localhost:5000/ping, http://localhost:6000/ping)
[
{
"target": "http://localhost:5000",
"body": {
"pong": "ok"
},
"status_code": 200
},
{
"target": "http://localhost:6000",
"body": {
"pong": "ok"
},
"status_code": 200
}
]
```### CONFIG
```json
{
"target_list": [
"http://localhost:5000",
"http://localhost:6000"
],
"body_fallback": 0
}
```### NO JSON RESPONSE OR INVALID JSON
#### BodyFallbackNone
set empty body
#### BodyFallbackJsonEncode
encode to base64 string and set to body
### LICENSE
MIT