Crates.io | libp2prs-infoserver |
lib.rs | libp2prs-infoserver |
version | 0.3.0 |
source | src |
created_at | 2021-01-14 12:25:51.198024 |
updated_at | 2021-04-23 08:00:05.056602 |
description | The libp2p info server |
homepage | |
repository | https://github.com/netwarps/libp2p-rs |
max_upload_size | |
id | 341885 |
size | 12,646 |
A visual interface about metric.
This is a web api-server that observe swarm's metric.
let keypair = Keypair::generate_ed25519_fixed();
let swarm = Swarm::new(keypair.public());
let control = swarm.control();
let monitor = InfoServer::new(control);
monitor.start("127.0.0.1:8999".to_string());