2019-12-12 23:49:32 +01:00
|
|
|
// Re-export as needed
|
2020-03-26 23:27:07 +01:00
|
|
|
|
|
|
|
pub mod acp;
|
|
|
|
pub mod entries;
|
|
|
|
pub mod schema;
|
2019-12-12 23:49:32 +01:00
|
|
|
pub mod system_config;
|
2020-03-26 23:27:07 +01:00
|
|
|
pub mod uuids;
|
|
|
|
|
|
|
|
pub use crate::constants::acp::*;
|
|
|
|
pub use crate::constants::entries::*;
|
|
|
|
pub use crate::constants::schema::*;
|
|
|
|
pub use crate::constants::system_config::*;
|
|
|
|
pub use crate::constants::uuids::*;
|
2019-12-12 23:49:32 +01:00
|
|
|
|
2019-11-29 01:48:22 +01:00
|
|
|
// Increment this as we add new schema types and values!!!
|
2020-02-29 05:02:14 +01:00
|
|
|
pub static SYSTEM_INDEX_VERSION: i64 = 5;
|
2019-07-12 07:28:46 +02:00
|
|
|
// On test builds, define to 60 seconds
|
|
|
|
#[cfg(test)]
|
2020-03-24 23:21:49 +01:00
|
|
|
pub static PURGE_FREQUENCY: u64 = 60;
|
|
|
|
// For production, 10 minutes.
|
2019-07-12 07:28:46 +02:00
|
|
|
#[cfg(not(test))]
|
2020-03-24 23:21:49 +01:00
|
|
|
pub static PURGE_FREQUENCY: u64 = 600;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
/// In test, we limit the changelog to 10 minutes.
|
|
|
|
pub static CHANGELOG_MAX_AGE: u64 = 600;
|
|
|
|
#[cfg(not(test))]
|
|
|
|
/// A replica may be less than 1 day out of sync and catch up.
|
|
|
|
pub static CHANGELOG_MAX_AGE: u64 = 86400;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
/// In test, we limit the recyclebin to 5 minutes.
|
|
|
|
pub static RECYCLEBIN_MAX_AGE: u64 = 300;
|
|
|
|
#[cfg(not(test))]
|
|
|
|
/// In production we allow 1 week
|
|
|
|
pub static RECYCLEBIN_MAX_AGE: u64 = 604800;
|
|
|
|
|
2019-09-06 05:04:58 +02:00
|
|
|
// 5 minute auth session window.
|
|
|
|
pub static AUTH_SESSION_TIMEOUT: u64 = 300;
|
2019-12-12 23:49:32 +01:00
|
|
|
pub static PW_MIN_LENGTH: usize = 10;
|