Module sources

Module sources 

Source
Expand description

Network and system data retrieval module split into submodules.

Re-exports§

pub use news::fetch_arch_news;
pub use news::fetch_news_content;
pub use news::parse_news_html;
pub use status::fetch_arch_status_text;

Modules§

news
Arch Linux news fetching. Arch Linux news fetching and parsing.
status
Arch Linux status page monitoring. Arch Linux status page parsing and monitoring.

Structs§

NewsFeedContext
What: Input context for fetching a combined news feed.

Functions§

check_circuit_breaker
What: Check circuit breaker state before making a request.
extract_endpoint_pattern
What: Extract endpoint pattern from URL for circuit breaker tracking.
extract_retry_after_from_error
What: Extract Retry-After value from error message string.
fetch_all_with_errors
What: Fetch search results from AUR and return items along with any error messages.
fetch_aur_comments
What: Fetch AUR package comments by scraping the AUR package page.
fetch_continuation_items
What: Fetch continuation items for background loading after initial batch.
fetch_details
What: Fetch package details for either official repositories or AUR, based on the item’s source.
fetch_news_feed
Errors
fetch_pkgbuild_fast
What: Fetch PKGBUILD content for a package from AUR or official Git packaging repos.
fetch_security_advisories
What: Fetch security advisories from security.archlinux.org and convert to feed items.
get_aur_json_changes
What: Get cached JSON changes for an AUR package.
get_official_json_changes
What: Get cached JSON changes for an official package.
increase_archlinux_backoff
What: Increase backoff delay for archlinux.org after a failure or rate limit.
load_official_json_cache
What: Load previously cached official package JSON from disk.
official_json_cache_path
What: Get the path to a cached official package JSON file.
optimize_max_age_for_startup
What: Calculate optimal max_age_days based on last startup timestamp.
rate_limit_archlinux
What: Apply rate limiting specifically for archlinux.org requests with exponential backoff.
record_circuit_breaker_outcome
What: Record request outcome in circuit breaker.
reset_archlinux_backoff
What: Reset backoff delay for archlinux.org after a successful request.
take_network_error
What: Check and clear the network error flag.