Struct rust_consul::Client
[−]
[src]
pub struct Client { /* fields omitted */ }Consul client
Methods
impl Client[src]
fn new(base_uri: &str, handle: &Handle) -> Result<Client, Error>[src]
Allocate a new consul client
fn services(&self) -> Watcher<Services>[src]
List services in the kernel and watch them
fn watch_service(&self, name: &str, passing: bool) -> Watcher<ServiceNodes>[src]
Watch changes of nodes on a service
fn agent(&self) -> FutureConsul<Agent>[src]
Get agent informations