14 releases

0.1.14 Jul 13, 2021
0.1.13 Jul 12, 2021
0.1.7 Jun 18, 2021
0.1.1 May 27, 2021

#288 in Caching

Download history 25/week @ 2023-10-29 2/week @ 2023-11-05 2/week @ 2023-11-12 1/week @ 2023-11-19 62/week @ 2023-11-26 30/week @ 2023-12-03 15/week @ 2023-12-17 30/week @ 2023-12-24 15/week @ 2024-01-21 61/week @ 2024-01-28 1/week @ 2024-02-04 52/week @ 2024-02-11

129 downloads per month

MIT/Apache

42KB
748 lines

consul api

consul config, consul.yaml

config:
  address: http://127.0.0.1:8500
  datacenter: dc1
  wait_time: 5s

watch_services:
  - service_name: hyat_rust
    passing_only: true
    tag: ''

load config

ConsulConfig::load_config("consul.yaml").await?;

consul watch

let consul_config = CONSUL_CONFIG.clone();
let consul_config = consul_config.read().await;
consul_config.watch_services().await?;

Dependencies

~15–30MB
~465K SLoC