diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-16 14:13:14 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-16 14:13:14 +0200 |
commit | 70a148dd86be9c8ccc56e1fce232262475aa3158 (patch) | |
tree | 51214ab651215ef94a8554039cc953042b043cf6 /crates/aggregator/src/cnfg.rs | |
parent | bf4a2b8b0a04f0cb682db84a835fe7c57d8526bc (diff) | |
download | warden-70a148dd86be9c8ccc56e1fce232262475aa3158.tar.bz2 warden-70a148dd86be9c8ccc56e1fce232262475aa3158.zip |
feat(aggregator): write evaluation
Diffstat (limited to 'crates/aggregator/src/cnfg.rs')
-rw-r--r-- | crates/aggregator/src/cnfg.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/aggregator/src/cnfg.rs b/crates/aggregator/src/cnfg.rs new file mode 100644 index 0000000..7c7aaf4 --- /dev/null +++ b/crates/aggregator/src/cnfg.rs @@ -0,0 +1,17 @@ +use std::sync::Arc; + +use serde::Deserialize; + +#[derive(Deserialize, Clone)] +pub struct LocalConfig { + pub nats: NatsConfig, +} + +#[derive(Deserialize, Clone)] +#[serde(rename_all = "kebab-case")] +pub struct NatsConfig { + #[serde(rename = "stream-name")] + pub name: Arc<str>, + pub subjects: Arc<[String]>, + pub durable_name: Arc<str>, +} |