Expand description
Provider-neutral quota, rate-limit, and retry-delay domains.
Structs§
- Delay
Decision - Pure bounded delay decision. The caller owns sleeping and clock acquisition.
- Delay
Seconds - A relative delay measured in whole seconds.
- Http
Date - A parsed HTTP date represented as signed Unix seconds.
- Quota
Bucket - One coherent provider quota bucket.
- Quota
Bucket Id - Provider-defined quota bucket identity in fixed-capacity storage.
- Quota
Buckets - Fixed-capacity set of distinct provider quota buckets.
- Quota
Delay Policy - Caller-owned quota delay policy.
- Quota
Extension - Bounded informational quota extension.
- Rate
Limit - Legacy single-bucket rate-limit metadata.
- Wall
Clock Timestamp - An absolute Unix wall-clock timestamp in whole seconds.
Enums§
- Delay
Conflict Policy - Conflict policy when
Retry-Afterand exhausted quota buckets disagree. - Delay
Decision Error - Failure to derive an unambiguous bounded delay.
- Delay
Source - Metadata source selected for a delay decision.
- Excess
Delay Policy - Handling for a computed delay above the caller’s maximum.
- Past
Timestamp Policy - Handling for timestamps at or before the caller’s observation time.
- Quota
Error - Invalid quota bucket or bounded collection.
- Quota
Extension Error - Invalid informational quota extension.
- Quota
Reset - Reset semantics for one provider quota bucket.
- Rate
Limit Error - Rate-limit metadata validation error.
- Retry
After - Standard HTTP
Retry-Aftervalue. - Retry
After Error - Invalid
Retry-Aftersyntax or value.
Constants§
- MAX_
QUOTA_ BUCKETS - Maximum provider quota buckets retained from one response.
- MAX_
QUOTA_ BUCKET_ ID_ BYTES - Maximum exact-byte provider quota bucket identity length.
- MAX_
QUOTA_ EXTENSIONS_ PER_ BUCKET - Maximum informational extensions retained per quota bucket.
- MAX_
QUOTA_ EXTENSION_ NAME_ BYTES - Maximum exact-byte quota extension name length.
- MAX_
QUOTA_ EXTENSION_ VALUE_ BYTES - Maximum exact-byte quota extension value length.
Functions§
- decide_
delay - Derives a bounded delay without reading a clock or sleeping.