Concord - C Discord API library
A Discord API wrapper library written in C
|
The ratelimiter struct for handling ratelimiting. More...
#include <discord-internal.h>
Data Fields | |
struct logconf | conf |
int | length |
int | capacity |
struct _discord_route * | routes |
struct discord_bucket * | null |
struct discord_bucket * | miss |
u64unix_ms * | global_wait_tstamp |
struct { | |
} | queues |
The ratelimiter struct for handling ratelimiting.
REST
manager thread struct logconf discord_ratelimiter::conf |
DISCORD_RATELIMIT
logging module
int discord_ratelimiter::length |
amount of bucket's routes discovered
int discord_ratelimiter::capacity |
route's cap before increase
struct _discord_route* discord_ratelimiter::routes |
routes matched to individual buckets
struct discord_bucket* discord_ratelimiter::null |
singleton bucket for requests that haven't been matched to a known or new bucket (i.e first time running the request)
struct discord_bucket* discord_ratelimiter::miss |
singleton bucket for requests that are not part of any known ratelimiting group
u64unix_ms* discord_ratelimiter::global_wait_tstamp |
struct { ... } discord_ratelimiter::queues |
bucket queues