etcd-client 0.14.0

An etcd v3 API client
Documentation
1
2
3
4
5
6
7
8
9
10
use etcd_client::{Client, Error};

pub const DEFAULT_TEST_ENDPOINT: &str = "localhost:2379";

pub type Result<T> = std::result::Result<T, Error>;

/// Get client for testing.
pub async fn get_client() -> Result<Client> {
    Client::connect([DEFAULT_TEST_ENDPOINT], None).await
}