https://github.com/clever/leakybucket
Leaky bucket implementation in Go with support for different backends (redis, in-memory)
https://github.com/clever/leakybucket
Last synced: about 1 year ago
JSON representation
Leaky bucket implementation in Go with support for different backends (redis, in-memory)
- Host: GitHub
- URL: https://github.com/clever/leakybucket
- Owner: Clever
- License: apache-2.0
- Created: 2014-03-17T21:29:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-04-24T00:27:34.000Z (about 1 year ago)
- Last Synced: 2025-04-24T01:26:36.838Z (about 1 year ago)
- Language: Go
- Size: 102 KB
- Stars: 87
- Watchers: 67
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## leakybucket
Leaky bucket implementation in Go with your choice of data storage layer.
## Why
[Leaky buckets](https://en.wikipedia.org/wiki/Leaky_bucket) are useful in a number of settings, especially rate limiting.
## Documentation
[](https://godoc.org/github.com/Clever/leakybucket).
## Tests
leakybucket is built and tested against Go 1.5.
Ensure this is the version of Go you're running with `go version`.
Make sure your GOPATH is set, e.g. `export GOPATH=~/go`.
Clone the repository to `$GOPATH/src/github.com/Clever/leakybucket`.
If you have done all of the above, then you should be able to run
```
make test
```