RateLimiter class
Rate Limiter para proteção contra abuse.
Limita o número de requests por sessão/evento em uma janela de tempo.
Constructors
- RateLimiter({RateLimitConfig? config})
Properties
- config → RateLimitConfig
-
Configuração
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkLimit(
String sessionId, String event) → bool - Verifica se request é permitido
-
dispose(
) → void - Limpa recursos
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
String sessionId) → void - Reseta limite para uma sessão
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited