ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
network/rate_limit/memory.h
Go to the documentation of this file.
1
5
6#pragma once
7
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
18
23void *memory_backend_create(void);
24
29
34
35#ifdef __cplusplus
36}
37#endif
unsigned long long uint64_t
const rate_limiter_backend_ops_t memory_backend_ops
Memory backend operations vtable.
Definition memory.c:274
void * memory_backend_create(void)
Create memory backend instance.
Definition memory.c:254
uint64_t rate_limiter_get_time_ms(void)
Helper: Get current time in milliseconds.
const char * rate_limiter_event_type_string(rate_event_type_t event_type)
Helper: Get event type string for logging.
Definition rate_limit.c:193
🚦 Rate limiting API with pluggable backends
rate_event_type_t
One sliding-window rate-limit policy.
Definition rate_limit.h:52
Backend callbacks implementing rate-limit checks, recording, cleanup, and destruction.
Definition rate_limit.h:96