Skip to main content
Version: 1.x

RateLimitRuntimeContext

RateLimitRuntimeContext

Active runtime context shared with APIs and directives.

Signature
interface RateLimitRuntimeContext {
storage: RateLimitStorage;
keyPrefix?: string;
defaultLimiter: RateLimitLimiterConfig;
limiters?: Record<string, RateLimitLimiterConfig>;
hooks?: RateLimitHooks;
}

storage

keyPrefix

property
string

defaultLimiter

limiters

property
Record<string, RateLimitLimiterConfig>

hooks