circumambient

command module
v0.0.0-...-89a4b02 Latest Latest
Warning

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

Go to latest
Published: May 1, 2015 License: MIT Imports: 11 Imported by: 0

README

Circumambient

Simple proxy to log details of any request made through it to redis.

Getting started

Install redis and start redis-server if it isn't already running.

Then,

$ go get hawx.me/code/circumambient
$ circumambient --help
...
$ circumambient --in localhost:3002 --out localhost:3001
...

Now any requests to localhost:3002 will be passed to localhost:3001, and any redis subscribers* listening on the channel "requests" will get the following message:

{
  "method": "...",
  "url": "...",
  "headers": {

  },
  "timestamp": 1397731289,
  "duration": 14331
}

* Subscribers not included.

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