1pub const USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"));
2
3pub mod app {
4 pub const VERSION: &str = env!("CARGO_PKG_VERSION");
5 pub const NAME: &str = env!("CARGO_PKG_NAME");
6}
7
8pub mod serve {
9 pub const DEFAULT_REQUEST_BODY_LIMIT_BYTES: usize = 1024 * 2;
10 pub const DEFAULT_REQUEST_CONCURRENCY_LIMIT: usize = 100;
11
12 pub const HEALTH_CHECK_PATH: &str = "/health";
13}
14
15pub mod metrics {
16 use std::time::Duration;
17
18 pub const MONITOR_INTERVAL: Duration = Duration::from_mins(1);
19}