![]() |
Kurlyk
|
Immutable limit parameters plus per-key mutable state. More...
Public Attributes | |
| long | requests_per_period = 0 |
| long | period_ms = 0 |
| bool | sequential = false |
| When `true`, blocks other requests until the current one finishes. | |
| bool | removed = false |
| `true` when the manager-owned handle has been released; physical erase is deferred until all keys are empty. | |
| std::unordered_map< std::string, KeyState > | keys |
| Mutable state per partition key. | |
Immutable limit parameters plus per-key mutable state.
Definition at line 388 of file HttpRateLimiter.hpp.
| std::unordered_map<std::string, KeyState> kurlyk::HttpRateLimiter::LimitData::keys |
Mutable state per partition key.
Definition at line 393 of file HttpRateLimiter.hpp.
| long kurlyk::HttpRateLimiter::LimitData::period_ms = 0 |
Definition at line 390 of file HttpRateLimiter.hpp.
| bool kurlyk::HttpRateLimiter::LimitData::removed = false |
`true` when the manager-owned handle has been released; physical erase is deferred until all keys are empty.
Definition at line 392 of file HttpRateLimiter.hpp.
| long kurlyk::HttpRateLimiter::LimitData::requests_per_period = 0 |
Definition at line 389 of file HttpRateLimiter.hpp.
| bool kurlyk::HttpRateLimiter::LimitData::sequential = false |
When `true`, blocks other requests until the current one finishes.
Definition at line 391 of file HttpRateLimiter.hpp.