Sign inSign up

fcingolani/chronobrake

By fcingolani

Updated almost 10 years ago

ChronoBrake will hold your request for a specified amount of time.

Image
0

1.1K

fcingolani/chronobrake repository overview

ChronoBrake

Docker Automated buil

ChronoBrake will hold your request for a specified amount of time.

Usage

Start the server

$ go get github.com/fcingolani/chronobrake
$ $GOPATH/bin/chronobrake
{"level":"info","msg":"Listening on 3000","time":"2016-10-18T11:57:45-03:00"}

Then make a request, using the desired hold time in milliseconds as its path. For example this request will take 10 seconds to complete:

$ curl http://localhost:3000/10000
10000

Options

ChronoBrake accepts the following arguments:

  -port string
        server port (default "3000")

Docker

$ docker run -d -p 3000:3000 fcingolani/chronobrake
b3eb446e25cd071007bbe01c53f5ae32aa6b6769c0d9c51d7d19fbc2f4fdea7b
$ curl http://localhost:3000/5000
5000

Tag summary

Content type

Image

Digest

Size

247.7 MB

Last updated

almost 10 years ago

docker pull fcingolani/chronobrake