Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SleepOrWait ¶
SleepOrWait provides context-aware long waiting or short sleeping.
For delay <= threshold, it uses `time.Sleep` directly, ignoring context cancellation. For delay > threshold, it respects context cancellation.
func ValidateKey ¶
ValidateKey validates that a key meets the requirements: - Maximum 64 bytes length - Contains only alphanumeric ASCII characters, underscore (_), hyphen (-), colon (:), period (.), at (@), and plus (+)
func ValidateQuotaName ¶
ValidateQuotaName validates a quota name with the same rules as keys
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.