Crates.io | nacos |
lib.rs | nacos |
version | 0.0.1 |
source | src |
created_at | 2021-03-12 06:09:12.28093 |
updated_at | 2021-03-12 06:09:12.28093 |
description | A rust client for operating nacos |
homepage | https://crates.io/crates/nacos-rs |
repository | https://github.com/shonenada/nacos-rs |
max_upload_size | |
id | 367574 |
size | 52,512 |
A Rust clinet for operating Nacos.
This project is heavy under development.
use nacos_core::NacosClient;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let client = NacosClient::new("http", "localhost", 8848);
let namespace_client = client.namespace_client();
let namespaces = namespace_client.list_namespaces().await?;
for ns in namespaces.iter() {
println!("{} {}", ns.namespace, ns.namespace_show_name);
}
Ok(())
}