Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg Config) *RateLimiter
New instantiates a dynamic request throttling layer. Handles both local token buckets and shared cluster constraints automatically.
func (*RateLimiter) Close ¶
func (rl *RateLimiter) Close()
Close terminates the background cleanup scheduler and flushes map data. Prevents memory leaks during proxy hot-reloads and shutdowns.
Click to show internal directories.
Click to hide internal directories.