Namespace Fluxer.Net.RateLimiting
Classes
- RateLimitBucket
Represents a sliding window rate limit bucket for API requests
- RateLimitConfig
Configuration for a rate limit bucket
- RateLimitConfigs
Static configuration for all Fluxer API rate limit buckets Matches the RateLimitConfig.ts from the Fluxer API
- RateLimitManager
Manages rate limit buckets for API requests with sliding window algorithm
- RateLimitMappings
Maps API routes to their corresponding rate limit configurations. This provides a centralized reference for rate limit buckets across the API.
Usage example in ApiClient methods:
public async Task<Channel> GetChannel(ulong channelId) { await WaitForRateLimit(RateLimitConfigs.CHANNEL_GET, channelId: channelId); return await MakeFluxerApiRequestR<Channel>(HttpMethod.Get, $"/channels/{channelId}", true); }