summaryrefslogtreecommitdiffstats
path: root/plugins/plugin_httpstop/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/plugin_httpstop/src/lib.rs')
-rw-r--r--plugins/plugin_httpstop/src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/plugin_httpstop/src/lib.rs b/plugins/plugin_httpstop/src/lib.rs
index 24eacc70..c109f826 100644
--- a/plugins/plugin_httpstop/src/lib.rs
+++ b/plugins/plugin_httpstop/src/lib.rs
@@ -9,8 +9,9 @@ use tokio::task::JoinHandle;
use tokio_util::sync::CancellationToken;
use tracing::{debug, error, Instrument};
-#[derive(serde::Deserialize, Debug)]
+#[derive(serde::Deserialize, Debug, tedge_api::Config)]
struct HttpStopConfig {
+ /// The address to listen on
bind: std::net::SocketAddr,
}
@@ -37,6 +38,10 @@ where
"httpstop"
}
+ fn kind_configuration() -> Option<tedge_api::ConfigDescription> {
+ Some(<HttpStopConfig as tedge_api::AsConfig>::as_config())
+ }
+
fn kind_message_types() -> HandleTypes
where
Self: Sized,