Preparing search index...
The search index is not available
Aleph Indexer Framework for Solana/Ethereum/BSC
Aleph Indexer Framework for Solana/Ethereum/BSC
Indexer Core
Utils
ComposeRateLimit
Class ComposeRateLimit
Hierarchy
ComposeRateLimit
Implements
RateLimitI
Index
Constructors
constructor
Properties
_rate
Limits
Methods
add
check
next
Try
sub
Constructors
constructor
new
Compose
Rate
Limit
(
_rateLimits
?:
RateLimitI
[]
)
:
ComposeRateLimit
Parameters
_rateLimits:
RateLimitI
[]
= []
Returns
ComposeRateLimit
Properties
Protected
_rate
Limits
_rate
Limits
:
RateLimitI
[]
= []
Methods
add
add
(
now
:
number
, weight
:
number
)
:
void
Parameters
now:
number
weight:
number
Returns
void
check
check
(
now
:
number
, weight
:
number
)
:
boolean
Parameters
now:
number
weight:
number
Returns
boolean
next
Try
next
Try
(
now
:
number
, weight
:
number
)
:
number
Parameters
now:
number
weight:
number
Returns
number
sub
sub
(
now
:
number
, weight
:
number
)
:
void
Parameters
now:
number
weight:
number
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
Modules
Aleph
Indexer
Framework for
Solana/
Ethereum/BSC
Bsc
Indexer
Framework
Ethereum
Indexer
Framework
Indexer
Core
Utils
Indexer
Framework
Solana
Indexer
Framework
buffer
Layouts
Compose
Rate
Limit
constructor
_rate
Limits
add
check
next
Try
sub
Generated using
TypeDoc