forked from Deuxfleurs/diplonat
Add README
This commit is contained in:
parent
506d4b1cbf
commit
15a8745a31
2 changed files with 15 additions and 3 deletions
12
README.md
Normal file
12
README.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
Diplonat
|
||||||
|
========
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
export DIPLONAT_PRIVATE_IP="192.168.0.18"
|
||||||
|
export DIPLONAT_REFRESH_TIME="60"
|
||||||
|
export DIPLONAT_EXPIRATION_TIME="300"
|
||||||
|
export DIPLONAT_CONSUL_NODE_NAME="lheureduthe"
|
||||||
|
cargo run
|
||||||
|
```
|
|
@ -59,9 +59,9 @@ async fn main() {
|
||||||
|
|
||||||
let resp = reqwest::get("http://127.0.0.1:8500")
|
let resp = reqwest::get("http://127.0.0.1:8500")
|
||||||
.await
|
.await
|
||||||
.unwrap()
|
.unwrap();
|
||||||
.json::<HashMap<String, String>>()
|
//.json::<HashMap<String, String>>()
|
||||||
.await.unwrap();
|
//.await.unwrap();
|
||||||
println!("{:#?}", resp);
|
println!("{:#?}", resp);
|
||||||
|
|
||||||
let gateway = match search_gateway(Default::default()).await {
|
let gateway = match search_gateway(Default::default()).await {
|
||||||
|
|
Loading…
Reference in a new issue