RateLimiterResLike
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
Defined in: packages/pipeline-rate-limit/src/interfaces/rate-limiter.interface.ts:8
Minimal structural shape of a rate-limiter-flexible result
(RateLimiterRes). Declared locally so this package does not hard-depend on
rate-limiter-flexible — a real result satisfies it.
Properties
Section titled “Properties”consumedPoints
Section titled “consumedPoints”consumedPoints:
number
Defined in: packages/pipeline-rate-limit/src/interfaces/rate-limiter.interface.ts:14
Points consumed so far in the current window.
isFirstInDuration
Section titled “isFirstInDuration”isFirstInDuration:
boolean
Defined in: packages/pipeline-rate-limit/src/interfaces/rate-limiter.interface.ts:16
Whether this consumption started a fresh window.
msBeforeNext
Section titled “msBeforeNext”msBeforeNext:
number
Defined in: packages/pipeline-rate-limit/src/interfaces/rate-limiter.interface.ts:10
Milliseconds until the next point(s) become available.
remainingPoints
Section titled “remainingPoints”remainingPoints:
number
Defined in: packages/pipeline-rate-limit/src/interfaces/rate-limiter.interface.ts:12
Points remaining in the current window after this consumption.