aboutsummaryrefslogtreecommitdiffstats
path: root/crates/rule-executor/src/cnfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rule-executor/src/cnfg.rs')
-rw-r--r--crates/rule-executor/src/cnfg.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/crates/rule-executor/src/cnfg.rs b/crates/rule-executor/src/cnfg.rs
new file mode 100644
index 0000000..eac1c2d
--- /dev/null
+++ b/crates/rule-executor/src/cnfg.rs
@@ -0,0 +1,26 @@
+use std::sync::Arc;
+
+use serde::Deserialize;
+
+#[derive(Deserialize, Clone)]
+#[serde(rename_all = "kebab-case")]
+pub struct LocalConfig {
+ pub config_endpoint: Arc<str>,
+ pub nats: Nats,
+}
+
+#[derive(Deserialize, Clone)]
+#[serde(rename_all = "kebab-case")]
+pub struct Nats {
+ pub name: Arc<str>,
+ pub subjects: Arc<[String]>,
+ pub durable_name: Arc<str>,
+ pub destination_prefix: Arc<str>,
+ pub config: ConfigNats,
+}
+
+#[derive(Deserialize, Clone)]
+pub struct ConfigNats {
+ pub stream: Arc<str>,
+ pub reload_subject: Arc<str>,
+}