Discover Packages
g.yxqyang.asia/shredx/golang-redis-rate-limiter
module
Version:
v0.0.0-...-c0e7709
Opens a new window with list of versions in this module.
Published: Mar 27, 2019
License: MIT
Opens a new window with license information.
README
README
¶
Golang Redis Rate Limiter
It's API limiter built in Go while we were trying out Redis.
It has got dependency on a node app that mock like the API to be limited node-redis-rate-limiter
and API gateway .
Getting Started
Prerequisite
Local Setup
Go -- Development environment
dep -- Dependency management
Revel -- Golang web framework
Redis -- Cache storage
Docker
Installation
Local Setup
go get -u github.com/shredx/golang-redis-rate-limiter
cd $GOPATH/github.com/shredx/golang-redis-rate-limiter
dep ensure
Docker
git clone https://github.com/shredx/golang-redis-rate-limiter
cd golang-redis-rate-limiter
docker-compose up
Architecture
The architecture might not be perfect as it was just a weekend project to explore Redis.
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.