Simplify public headers more

This commit is contained in:
2025-08-17 16:38:38 -04:00
parent 8862fdd588
commit 34ebf5725f
6 changed files with 36 additions and 370 deletions

View File

@@ -15,8 +15,7 @@ struct ServerConfig {
/// TCP port number for the server to listen on
int port = 8080;
/// Maximum size in bytes for incoming HTTP requests (default: 1MB)
size_t max_request_size_bytes =
1024 * 1024; // 1MB default for 413 Content Too Large
size_t max_request_size_bytes = 1024 * 1024;
};
/**
@@ -24,13 +23,11 @@ struct ServerConfig {
*/
struct CommitConfig {
/// Minimum required length for request_id to ensure sufficient entropy
size_t min_request_id_length = 20; // Minimum length for request_id entropy
size_t min_request_id_length = 20;
/// How long to retain request IDs for duplicate detection
std::chrono::hours request_id_retention_hours{
24}; // How long to keep request IDs
std::chrono::hours request_id_retention_hours{24};
/// Minimum number of commit versions to retain request IDs for
size_t request_id_retention_versions =
100000000; // Min versions to retain request IDs
size_t request_id_retention_versions = 100000000;
};
/**
@@ -38,10 +35,9 @@ struct CommitConfig {
*/
struct SubscriptionConfig {
/// Maximum buffer size for unconsumed subscription data before backpressure
size_t max_buffer_size_bytes =
10 * 1024 * 1024; // 10MB buffer for unconsumed data
size_t max_buffer_size_bytes = 10 * 1024 * 1024;
/// Interval between keepalive comments in subscription streams
std::chrono::seconds keepalive_interval{30}; // Keepalive comment frequency
std::chrono::seconds keepalive_interval{30};
};
/**