aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-05-22 11:34:12 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-05-22 11:34:12 +0200
commitfe1d91fe06e314faa54997638f11ae6afb57b0b5 (patch)
treef97aebfc9e320040e3635ddc10b5de7a3dff543d /src
parent4cce22504359489cced92d38a0671edce498cdd6 (diff)
downloaddiplonat-fe1d91fe06e314faa54997638f11ae6afb57b0b5.tar.gz
diplonat-fe1d91fe06e314faa54997638f11ae6afb57b0b5.zip
WIP consul
Diffstat (limited to 'src')
-rw-r--r--src/consul_actor.rs15
-rw-r--r--src/main.rs1
2 files changed, 16 insertions, 0 deletions
diff --git a/src/consul_actor.rs b/src/consul_actor.rs
new file mode 100644
index 0000000..0f09851
--- /dev/null
+++ b/src/consul_actor.rs
@@ -0,0 +1,15 @@
+use crate::consul::Consul;
+use tokio::sync::watch;
+
+pub struct ConsulActor {
+ consul: Consul
+ out:
+}
+
+impl ConsulActor {
+ fn new(url: &str) -> Self {
+ return Self {
+ consul: Consul::new(url);
+ };
+ }
+}
diff --git a/src/main.rs b/src/main.rs
index 028f16e..844bff9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,5 @@
mod consul;
+mod consul_actor;
//use std::net::SocketAddrV4;
//use std::collections::HashMap;