Concord - C Discord API library
A Discord API wrapper library written in C

The Discord bucket for handling per-group ratelimits. More...

#include <discord-internal.h>

Collaboration diagram for discord_bucket:
[legend]

Data Fields

char hash [64]
 
long limit
 
long remaining
 
u64unix_ms reset_tstamp
 
struct discord_requestbusy_req
 
struct {
queues
 
QUEUE entry
 

Detailed Description

The Discord bucket for handling per-group ratelimits.

Field Documentation

◆ hash

char discord_bucket::hash[64]

the hash associated with the bucket's ratelimiting group

◆ limit

long discord_bucket::limit

maximum connections this bucket can handle before ratelimit

◆ remaining

long discord_bucket::remaining

connections this bucket can do before pending for cooldown

◆ reset_tstamp

u64unix_ms discord_bucket::reset_tstamp

timestamp of when cooldown timer resets

◆ busy_req

struct discord_request* discord_bucket::busy_req

pointer to this bucket's currently busy request

Note
DISCORD_BUCKET_TIMEOUT if bucket is being ratelimited

◆ 

struct { ... } discord_bucket::queues

request queues

◆ entry

QUEUE discord_bucket::entry

entry for discord_ratelimiter pending buckets queue


The documentation for this struct was generated from the following file: