Skip to content

Rust client libray for Consul HTTP API

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

eschudt/consul-rust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consul-rust

Build Status

See the documentation here.

Rust client library for the Consul HTTP API.

Usage

extern crate consul;

use consul::Client;
use std::collections::HashMap;

fn main() {
    let client = Client::new("http://127.0.0.1:8500");
    let services: HashMap<String, Vec<String>> = client.catalog.services().unwrap();
    println!("{:?}", services);
}

For more examples, see the tests.

Installation

Simply include consul-rust in your Cargo dependencies.

[dependencies]
eschudt_consul = "0.1"

About

Rust client libray for Consul HTTP API

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.1%
  • Shell 0.9%