package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Nov 6, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package ratelimit implements concurrency-safe in-memory token buckets.
Middleware returns context-aware HTTP admission or coordination middleware.
Config contains explicit constructor settings; see package documentation for defaults.
Decision contains admission and retry-after metadata.
Limiter evaluates a context-aware rate policy.
Memory provides bounded process-local coordination.
New constructs and validates an explicitly owned instance. See package documentation for defaults and cleanup.
Allow evaluates the configured rate policy for a key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.