riib (Request it in Background)
Agent for asynchronous request for web applications.
Riib is not finished yet, and this readme lacks a lot of detail (it's still a work in progress).
Protocols
Response for every protocol you will receive as a POST request to callback_url specified:
{
"ticket": "<random generated ticket>",
"response": "<remote response>"
}
HTTP Protocol
HTTP POST expecting json body:
Request:
{
"method": "<POST | GET>",
"remote: "http[s]://remote_host:port/some/method",
"callback_url": "http[s]://remote_host:port/where/to/get/the/response",
"data": "whatever you want to send to <remote>"
}
Response:
{
"ticket": "<random generated ticket>"
}
Raw Protocol
HTTP POST expecting json body:
{
"remote: "remote_host:port",
"callback_url": "http[s]://remote_host:port/where/to/get/the/response",
"data": "whatever you want to send to <remote>"
}
Response:
{
"ticket": "<random generated ticket>"
}
Dependencies
go get github.com/julienschmidt/httprouter