fetch list of collectors from source of truth
Closed this issue · 1 comments
digizeph commented
Source of truth:
digizeph commented
Created a new cratebgpkit-commons
to gather such information.
https://crates.io/crates/bgpkit-commons
See the documentation and the following example on how to use it:
use bgpkit_commons::collectors::get_routeviews_collectors;
fn main() {
println!("get route views collectors");
let mut routeviews_collectors = get_routeviews_collectors().unwrap();
routeviews_collectors.sort();
let earliest = routeviews_collectors.first().unwrap();
let latest = routeviews_collectors.last().unwrap();
println!("\t total of {} collectors", routeviews_collectors.len());
println!(
"\t earliest collector: {} (activated on {})",
earliest.name, earliest.activated_on
);
println!(
"\t latest collector: {} (activated on {})",
latest.name, latest.activated_on
);
}