Documentation
¶
Overview ¶
Package ratelimit provides helpers for applying distributed request throttling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRateLimit ¶
func ApplyRateLimit(handler apptheory.Handler, limit int, window time.Duration, logger *zap.Logger) apptheory.Handler
ApplyRateLimit wraps a handler with a DynamoDB-backed rate limiter.
This is a hard cutover: no Lift runtime types or middleware are used.
Fail-open: if limiter creation/check fails, the request proceeds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.