PowerTools/backend/src/consts.rs

18 lines
775 B
Rust
Raw Normal View History

2022-08-26 22:00:43 +01:00
pub const PORT: u16 = 44443;
pub const PACKAGE_NAME: &'static str = env!("CARGO_PKG_NAME");
pub const PACKAGE_VERSION: &'static str = env!("CARGO_PKG_VERSION");
pub const DEFAULT_SETTINGS_FILE: &str = "default_settings.ron";
pub const DEFAULT_SETTINGS_NAME: &str = "Main";
pub const DEFAULT_SETTINGS_VARIANT_NAME: &str = "Primary";
pub const LIMITS_FILE: &str = "limits_cache.ron";
pub const LIMITS_REFRESH_PERIOD: std::time::Duration = std::time::Duration::from_secs(60 * 60 * 24); // 1 day
pub const LIMITS_STARTUP_WAIT: std::time::Duration = std::time::Duration::from_secs(60); // 1 minute
pub const LIMITS_OVERRIDE_FILE: &str = "limits_override.ron";
2024-02-03 02:04:10 +00:00
pub const WEB_SETTINGS_CACHE: &str = "store_cache.ron";
2023-07-04 03:00:18 +01:00
pub const MESSAGE_SEEN_ID_FILE: &str = "seen_message.bin";