Struct consul::Client [] [src]

pub struct Client {
    pub agent: Agent,
    pub catalog: Catalog,
    pub health: Health,
    pub keystore: Keystore,
    pub session: Session,
}

provides a client to the Consul API

Fields

agent: Agent

agent endpoint

catalog: Catalog

catalog endpoint

health: Health

health endpoint

keystore: Keystore session: Session

Methods

impl Client
[src]

fn new(address: &str) -> Client

Constructs a consul client