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§
- News
Feed Context - 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_daysbased 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.