Allows for multiple concurrent URLs to be fired off from a single client connection in order to decrease the processing responsibilities of the client.
- Run
go get
to retrieve packages - Run
go install
to compile - Run
go build && ./Multi-Fire
to build and run - Access at
http://localhost:8080
twig
: A URLkindling
: A set of twigskindlings
: Multiple sets of kindlingignite
: To trigger a firing of a set of kindling
Add new set of URLs (kindling). Returns kindlingId
http://localhost:8080/add
Payload
[
{
"url":"http://foo.com"
},
{
"url":"http://foo2.com"
},
{
"url":"http://foo3.com"
}
]
Get existing set of URLs (kindling)
http://localhost:8080/get/{kindlingId}
Response
{
"kindling_id": 1,
"twigs": [
{
"url": "http://foo.com"
},
{
"url": "http://foo2.com"
},
{
"url": "http://foo3.com"
}
]
}
Fire each twig/URL from set of kindling. Note: Response will be an empty GIF.
Example Usage
<img src="http://{host}/ignite/234" border="0" />