Expand description
Fast keyed quota limiting with optional discrete refill intervals.
QuotaPool is the main concurrent keyed limiter. Quota remains as a small direct
token counter used by the legacy direct-quota API and tests.
Structs§
- Current
Quota - A snapshot of how much quota is available after a check or consume operation.
- Quota
- A small single-quota token counter.
- Quota
Policy - Capacity and refill configuration shared by direct and pooled quota APIs.
- Quota
Pool - A concurrent keyed quota pool.
- Quota
TooLow - Error returned when a quota cannot satisfy a requested cost.
- Refill
Rate - A refill rate normalized to tokens per nanosecond.
Type Aliases§
- Quota
Key - The default owned key type for a keyed quota pool.
- Quota
Result - Standard quota operation result.