aboutsummaryrefslogtreecommitdiff
path: root/src/util/config.rs
diff options
context:
space:
mode:
authorRoberto Hidalgo <un@rob.mx>2023-05-08 19:29:47 -0600
committerRoberto Hidalgo <un@rob.mx>2023-05-22 08:57:15 -0600
commitbd6485565e78c0bbb9ee830c4e5b114c6248dc97 (patch)
tree4afbdbbd65eb29c3eb50d96a53aff91450ba3b7a /src/util/config.rs
parent4d6e6fc155bb263a04f7f6dfbb77933f5d2d0b2e (diff)
downloadgarage-bd6485565e78c0bbb9ee830c4e5b114c6248dc97.tar.gz
garage-bd6485565e78c0bbb9ee830c4e5b114c6248dc97.zip
allow additional ServiceMeta, docs
Diffstat (limited to 'src/util/config.rs')
-rw-r--r--src/util/config.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index 4b32f8ba..84a8e34f 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -168,6 +168,9 @@ pub struct ConsulServiceConfig {
// Additional tags to add to the service
#[serde(default)]
pub tags: Vec<String>,
+ // Additional service metadata to add
+ #[serde(default)]
+ pub meta: Option<std::collections::HashMap<String, String>>,
/// Skip TLS hostname verification
#[serde(default)]
pub tls_skip_verify: bool,