Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow passing filters to .latest() function #62

Open
digizeph opened this issue Nov 7, 2024 · 0 comments
Open

allow passing filters to .latest() function #62

digizeph opened this issue Nov 7, 2024 · 0 comments

Comments

@digizeph
Copy link
Member

digizeph commented Nov 7, 2024

Currently, if users want to get the latest data file for certain collector or data type, they need to call .latest() and filter the data with custom .filter function.

We should allow users to use the same filtering mechanism to filter .latest() results. The following example should work:

let latest_rcc00_rib = bgpkit_broker::BgpkitBroker::new().collector_id("rrc00").data_type("rib").latest();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant