https://github.com/pepabo/rate-limit-middleware
https://github.com/pepabo/rate-limit-middleware
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pepabo/rate-limit-middleware
- Owner: pepabo
- License: mit
- Created: 2023-02-17T03:05:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T00:08:03.000Z (over 2 years ago)
- Last Synced: 2025-01-26T18:17:34.732Z (over 1 year ago)
- Language: Go
- Size: 1.69 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Rate-Limite-Middleware
APIのレートリミットを制御するGoのecho用ミドルウェアです.
## Getting Started
1. `cd example`
2. `source .env` 環境変数の読み込み
3. `go run main.go`
4. `docker compose up -d --build` containerを立ち上げる
5. `docker logs curl --follow` curl側でリクエストが送信されていることをかくにんする
6. `docker logs nginx --follow` nginx側でのリクエスト処理を確認
## 動作の様子
