Crates.io | libp2prs-exporter |
lib.rs | libp2prs-exporter |
version | 0.3.0 |
source | src |
created_at | 2021-01-14 12:22:50.589094 |
updated_at | 2021-04-23 07:58:42.523612 |
description | The libp2p exporter |
homepage | |
repository | https://github.com/netwarps/libp2p-rs |
max_upload_size | |
id | 341884 |
size | 11,424 |
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());