vroxy

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 14 Imported by: 0

README

vroxy

Proxy server for balancing a requests to VK API to avoid rate limit exceeded.

Requests grouping to chunks and sends every seconds using Execute method without the habit of rate limitations.

Requests

Requests are the same as the original requests except for the hostname.

Responses

Because the queue is used to deliver a requests, the proxy responses are very different from the original responses.

OK
$ curl -iX POST http://localhost:8080/method/messages.send\?access_token\=[...] \
  -F user_id=2554441 \
  -F message=test

HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Sat, 17 Mar 2018 18:07:28 GMT
Content-Length: 17

{"success":true}
Bad request
curl -iX POST \
  http://localhost:8080/method/messages.send\?access_token\= \
  -F user_id=2554441 \
  -F message=test

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
Date: Sat, 17 Mar 2018 18:21:34 GMT
Content-Length: 61
Connection: close

{"error":"query `access_token` is required","success":false}

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