Skip to content

Commit 5c76091

Browse files
committed
feat: added draco variant env variable
1 parent 6dd1006 commit 5c76091

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/base/src/config.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ pub struct AdapterConfig {
5151
///
5252
/// If true the Adapter will expose a grpc health service server.
5353
pub with_health_service: bool,
54+
55+
/// Variant
56+
///
57+
/// The Variant of Draco. E.g. Http, Cron...
58+
pub draco_variant: String,
5459
}
5560

5661
impl AdapterConfig {
@@ -79,6 +84,8 @@ impl AdapterConfig {
7984
let with_health_service =
8085
code0_flow::flow_config::env_with_default("WITH_HEALTH_SERVICE", false);
8186

87+
let draco_variant =
88+
code0_flow::flow_config::env_with_default("DRACO_VARIANT", String::from("None"));
8289
Self {
8390
environment,
8491
nats_bucket,
@@ -89,6 +96,7 @@ impl AdapterConfig {
8996
aquila_url,
9097
definition_path,
9198
with_health_service,
99+
draco_variant,
92100
}
93101
}
94102

0 commit comments

Comments
 (0)