Files
c-relay-pg/caching/src/cache_all_test.h
T

27 lines
922 B
C

/*
* cache_all_test - feasibility test for "cache everything" approach.
*
* Standalone test program that connects to all outbox relays of followed
* pubkeys and subscribes to ALL events (no author filter) to determine
* if relays will tolerate this level of data flow.
*
* Logs raw relay responses verbatim. Tracks kind distribution, event sizes,
* per-relay stats. Generates summary report + raw relay log file.
*
* See plans/cache_all_feasibility_test_plan.md for full design.
*/
#ifndef CACHE_ALL_TEST_H
#define CACHE_ALL_TEST_H
/* Run the cache-all feasibility test.
* config_path: path to .jsonc config file
* duration_seconds: how long to run (0 = run until SIGINT)
* log_level: debug level 0-5
* Returns 0 on success, -1 on error.
*/
int run_cache_all_test(const char *config_path,
long duration_seconds,
int log_level);
#endif /* CACHE_ALL_TEST_H */