Skip to main content

unifier/
constants.rs

1//! On-disk layout constants.
2
3pub const CRON: &str = "cron";
4pub const MAILBOX: &str = "mailbox";
5pub const KEYS: &str = "keys";
6pub const CHROOTS: &str = "chroots";
7pub const TICKS: &str = "ticks";
8pub const EVENTS: &str = "events";
9pub const SQLITE: &str = "sqlite";
10
11/// Reserved managed database for subject/predicate/object triples.
12pub const TRIPLES_DB: &str = "triples";
13
14/// File under [`TICKS`] recording the latest committed tick number.
15pub const TICK_CURRENT: &str = "current";
16
17/// Directory for span-tree log entries.
18pub const LOGS: &str = "logs";
19
20/// Default lifetime for posted events (`events/<uuid>.json`) when no TTL is given.
21pub const DEFAULT_EVENT_TTL_SECS: u64 = 24 * 60 * 60;
22
23/// Separator between cron schedule fields in directory names (minute_hour_dom_mon_dow).
24pub const CRON_FIELD_SEP: char = '_';