Skip to content

pepabo/rate-limit-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c53fb6e · Mar 24, 2023

History

7 Commits
Mar 22, 2023
Mar 22, 2023
Feb 21, 2023
Feb 17, 2023
Mar 22, 2023
Feb 21, 2023
Feb 21, 2023
Mar 22, 2023

Repository files navigation

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側でのリクエスト処理を確認

動作の様子

代替テキスト