https://github.com/integralist/go-requester
HTTP service that accepts a collection of "components", fans-out requests and returns aggregated content
https://github.com/integralist/go-requester
Last synced: over 1 year ago
JSON representation
HTTP service that accepts a collection of "components", fans-out requests and returns aggregated content
- Host: GitHub
- URL: https://github.com/integralist/go-requester
- Owner: Integralist
- License: mit
- Created: 2015-08-14T11:05:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-21T13:55:15.000Z (over 10 years ago)
- Last Synced: 2025-03-18T17:04:12.792Z (over 1 year ago)
- Language: Go
- Size: 6.27 MB
- Stars: 32
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Go-Requester
HTTP service that accepts a collection of "components"
then fans-out requests and returns aggregated content
## Summary
- Components should be defined in a YAML page configuration file
- Components are requested concurrently via goroutines
- Components can be marked as "mandatory" (if they fail, the request summary is set to "failure")
## Example Page Config
```yaml
components:
- id: google
url: http://google.com
- id: integralist
url: http://integralist.co.uk
mandatory: true
- id: not-found
url: http://httpstat.us/404
- id: timeout
url: http://httpstat.us/408
- id: server-error
url: http://httpstat.us/500
- id: service-unavailable
url: http://httpstat.us/503
```
> Note:
> example config provided as part of this repo
> `./config/page.yaml`
## Example JSON Output
```json
{
"summary": "success",
"components": [
{
"id": "google",
"status": 200,
"body": " ...