LAD-1276 add period and burst for rateLimiter

This commit is contained in:
Пучков Андрей Павлович committed 2026-10-09 14:49:27 +03:00
1 parent d1c78cecf1
commit 3ff40fda83
4 files changed
+70 -14

No files matched your search

+4 -2
View File
@@ -5,8 +5,10 @@ import (
)
type RateLimiterRequest struct {
Key string `validate:"required"`
MaxRps int `validate:"required"`
Key string `validate:"required"`
MaxRps int `validate:"required"`
PeriodInSec int
Burst int
}
type RateLimiterInMemRequest struct {