Crates.io | consul-rs |
lib.rs | consul-rs |
version | 0.1.14 |
source | src |
created_at | 2021-05-27 09:51:22.812863 |
updated_at | 2021-07-13 09:55:00.284284 |
description | consul api |
homepage | https://github.com/ptechen |
repository | https://github.com/ptechen/consul-rs.git |
max_upload_size | |
id | 402602 |
size | 41,872 |
config:
address: http://127.0.0.1:8500
datacenter: dc1
wait_time: 5s
watch_services:
- service_name: hyat_rust
passing_only: true
tag: ''
ConsulConfig::load_config("consul.yaml").await?;
let consul_config = CONSUL_CONFIG.clone();
let consul_config = consul_config.read().await;
consul_config.watch_services().await?;