Crates.io | zk-4lw |
lib.rs | zk-4lw |
version | 0.1.0 |
source | src |
created_at | 2018-02-23 23:47:53.654481 |
updated_at | 2018-02-23 23:47:53.654481 |
description | Client and parser for ZooKeeper four letter words |
homepage | |
repository | https://github.com/OneSignal/zk-4lw |
max_upload_size | |
id | 52579 |
size | 23,456 |
ZooKeeper Four Letter Words Client Library
use zk_4lw::{Client, Mntr};
// Create a client for ZooKeeper
let client = Client::new("localhost:2181");
// Run the "mntr" command
let res: ::zk_4lw::mntr::Response = client.exec::<Mntr>().unwrap();
Static tests can be run with a simple cargo test
. Additionally, commands can
be run against a ZooKeeper instance with cargo test --features with-client
.