https://github.com/felixseptem/ratelimit
a simple implement of web ratelimit by Golang.
https://github.com/felixseptem/ratelimit
golang rate-limits web
Last synced: about 1 year ago
JSON representation
a simple implement of web ratelimit by Golang.
- Host: GitHub
- URL: https://github.com/felixseptem/ratelimit
- Owner: FelixSeptem
- License: mit
- Created: 2018-10-27T08:58:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T08:34:41.000Z (over 7 years ago)
- Last Synced: 2025-01-05T04:33:40.426Z (over 1 year ago)
- Topics: golang, rate-limits, web
- Language: Go
- Size: 22.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# a simple implement of ratelimit
inspired by [token bucket](https://en.wikipedia.org/wiki/Token_bucket)
[](https://www.travis-ci.org/FelixSeptem/ratelimit)
[](https://coveralls.io/github/FelixSeptem/ratelimit?branch=master)
[](https://goreportcard.com/report/github.com/FelixSeptem/ratelimit)
[](http://godoc.org/github.com/FelixSeptem/ratelimit)
[](https://golangci.com/r/github.com/FelixSeptem/ratelimit)
### Install
```go
go get -u github.com/FelixSeptem/ratelimit
```
### Use Example
[example](https://github.com/FelixSeptem/ratelimit/blob/master/example/example.go)