feat(auth): lab7 share login limits across replicas and bound Argon2 work

This commit is contained in:
Голиков Maximillian Антон
2026-11-29 12:32:16 +03:00
parent 4fe1d17e50
commit a907161087
8 changed files with 76 additions and 1 deletions
+5
View File
@@ -195,3 +195,8 @@ func (e *UnavailableError) Error() string {
}
func (e *UnavailableError) Unwrap() error { return ErrUnavailable }
func (e *UnavailableError) Code() ErrorCode { return CodeUnavailable }
type RateLimitedError struct{ Seconds int }
func (e *RateLimitedError) Error() string { return "превышена частота запросов" }
func (e *RateLimitedError) Code() ErrorCode { return "rate_limited" }