Versions in this module Expand all Collapse all v0 v0.4.1 Jun 28, 2025 v0.4.0 Jun 21, 2025 Changes in this version + type RateLimiter interface + Allow func(ctx context.Context, key string, limit int, window time.Duration) (bool, time.Duration, error) + func NewRedisRateLimiter(client *redis.Client) RateLimiter + type RedisRateLimiter struct + func (r *RedisRateLimiter) Allow(ctx context.Context, key string, limit int, window time.Duration) (bool, time.Duration, error)