rate-limit

module
v0.0.0-...-ec1ca02 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT

README

jlucktay's Rate Limiter (jrl)

My implementation of (and small demo wrapper around) a distributed rate limiting library.

Installation

Prerequisites

You should have a working Go environment and have $GOPATH/bin in your $PATH.

Compiling

To download the source, compile, and install the demo binary, run:

go get github.com/jlucktay/rate-limit/...

The source code will be located in $GOPATH/src/github.com/jlucktay/rate-limit/.

A newly-compiled jrl binary will be in $GOPATH/bin/.

Usage

Launching the demo server:

jrl

Hitting the server from another terminal session:

$ while true; do curl --silent --include localhost:8080 | head --lines 1; done
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
...

License

MIT

Directories

Path Synopsis
cmd
jrl
example
pkg

Jump to

Keyboard shortcuts

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