Skip to main content

fetch

Function fetch 

Source
pub async fn fetch() -> Result<Vec<CuratedRepo>>
Expand description

Fetch curated repositories from remote URL with TTL-based caching.

Fetches the curated repository list from a remote JSON file (configured via cache.curated_repos_url), caching the result with a TTL based on cache.repo_ttl_hours.

If the network fetch fails, falls back to embedded defaults with a warning.

§Returns

A vector of CuratedRepo structs.

§Errors

Returns an error if:

  • Configuration cannot be loaded