ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
rate_limit_config_t Struct Reference

One sliding-window rate-limit policy. More...

#include <include/ascii-chat/network/rate_limit/rate_limit.h>

Data Fields

uint32_t max_events
 Maximum events allowed.
uint32_t window_secs
 Time window in seconds.

Detailed Description

One sliding-window rate-limit policy.

A caller may allow at most max_events occurrences of one event type during window_secs; both the memory and SQLite backends use this pair when deciding whether an address may proceed.

Definition at line 73 of file rate_limit.h.

Field Documentation

◆ max_events

uint32_t rate_limit_config_t::max_events

Maximum events allowed.

Definition at line 74 of file rate_limit.h.

Referenced by http_server_init().

◆ window_secs

uint32_t rate_limit_config_t::window_secs

Time window in seconds.

Definition at line 75 of file rate_limit.h.

Referenced by http_server_init().


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