BGPKIT Broker is a online data API service that allows users to search for publicly...

BGPKIT Broker

BGPKIT Broker is a online data API service that allows users to search for publicly available BGP archive files by time, collector, project, or data type. The service indexes the archives in close to real-time (delay is less than 5 minutes). Currently, we are indexing BGP table dump and updates files from RIPE RIS and RouteViews.

This Rust library provides access to the BGPKIT Broker API with the capability to search and paginate results.

Example

use bgpkit_broker::{BgpkitBroker, BrokerItem, QueryParams};

let mut params = QueryParams::new();
params = params.start_ts(1634693400);
params = params.end_ts(1634693400);
params = params.page_size(10);
params = params.page(2);

let mut broker = BgpkitBroker::new("https://api.broker.bgpkit.com/v1");
broker.set_params(&params);

// method 1: create iterator from reference (so that you can reuse the broker object)
// same as `&broker.into_iter()`
for item in &broker {
println!("{:?}", item);
}

// method 2: create iterator from the broker object (taking ownership)
let items = broker.into_iter().collect::<Vec<BrokerItem>>();

assert_eq!(items.len(), 48);

Contribution

Issues and Pull Requests

If you found any issues of this Rust library or would like to contribute to the code base, please feel free to open an issue or pull request. Code or documentation issues/PRs are both welcome.

Data Provider

If you have publicly available data and want to be indexed BGPKIT Broker service, please send us an email at [email protected]. Our back-end service is designed to be flexible and should be able to adapt to most data archiving approaches.

On-premise Deployment

We provide service to allow companies to host their own BGP Broker backend on-premise to allow maximum performance and customization. If you are interested in deploying one, please contact us at [email protected].

Built with ❤️ by BGPKIT Team

BGPKIT is a small-team start-up that focus on building the best tooling for BGP data in Rust. We have 10 years of experience working with BGP data and believe that our work can enable more companies to start keeping tracks of BGP data on their own turf. Learn more about what services we provide at https://bgpkit.com.

Issues

Collection of the latest Issues

Versions

Find the latest versions by id

v0.3.2 - Oct 29, 2021

Fixes

Fixed broker returning items ordering issue during iteration.

v0.3.1 - Oct 29, 2021

Feature

Added new new_with_params constructor function for BgpkitBroker. This allows users to construct a broker instance directly with query parameters, without needing to make a mut broker and then set the query parameters.

Example:

v0.3.0 - Oct 23, 2021

New Feature: Iterator

Calling BGPKIT Broker API is never easier with iterator!

Simply call for loop on a broker object will give you a stream of items until it reaches the end:

Now with iterator implemented, you can also do some iter magic like map, for_each, count etc.

Improved Documentation

In this version release, we also took our time fleshing out the documentation of this crate, and can be viewed on crates.io at https://docs.rs/bgpkit-broker/0.3.0/bgpkit_broker/

Information - Updated Mar 17, 2022

Stars: 5
Forks: 0
Issues: 1

A native Rust library for Mozilla's Public Suffix List

This library uses Mozilla's psl crate instead

A native Rust library for Mozilla's Public Suffix List

Filecoin Proofs API

This library is meant to be the official public API into the proofs library

Filecoin Proofs API

A native Rust library for Mozilla's Public Suffix List

This library uses Mozilla's publicsuffix crate instead (which also has optional support for looking up domain names in any case)

A native Rust library for Mozilla's Public Suffix List

Library for safe and correct Unix signal handling in Rust

Unix signals are inherently hard to handle correctly, for several reasons:

Library for safe and correct Unix signal handling in Rust

Library for traversing &amp; reading GameCube and Wii disc images

Based on the C++ library MIT license (LICENSE-MIT or

Library for traversing &amp; reading GameCube and Wii disc images

Bindings to libssh

Bindings to GNU Library (or: Lesser) General Public License

Bindings to libssh

Please follow the guidelines in the CONTRIBUTING

This library contains typings and utility functions dealing with the Public specification of the Internet Computer

Please follow the guidelines in the CONTRIBUTING

Library that implements low-level protocol to the Hitachi HD44780-compatible LCD device

by default (only uses 4 data pins) plus two control pins (R/S and EN)

Library that implements low-level protocol to the Hitachi HD44780-compatible LCD device

Library that implements low-level protocol to the Hitachi HD44780-compatible LCD device

by default (only uses 4 data pins) plus two control pins (R/S and EN)

Library that implements low-level protocol to the Hitachi HD44780-compatible LCD device

Filecoin Proofs API

This library is meant to be the official public API into the proofs library

Filecoin Proofs API
Facebook Instagram Twitter GitHub Dribbble
Privacy