riib

command module
v0.0.0-...-2363d9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

README

Go Report Card GPLv3 license

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL