Skip to main content

Module fetch

Module fetch 

Source
Expand description

The one round trip behind a cache miss, and what this reader will not make it for.

Structs§

GetRecordResponse 🔒
What com.atproto.repo.getRecord answers with on success.
ListRecordsResponse 🔒
What com.atproto.repo.listRecords answers with on success.
ListedRecord 🔒
One record in a ListRecordsResponse.
Network
The real fetch: resolve the DID to its #atproto_pds endpoint, then com.atproto.repo.getRecord there.
NoLocalRepositories
A deployment that holds nothing, for a caller with no registry to ask — a test, or a reader pointed only at the public network.

Enums§

Fetched
What one round trip established.
Unknown
Why a record’s value is not known.

Constants§

MAX_COLLECTION_RECORDS
The most records one collection read takes from a repository.
MAX_RECORD_BYTES
The most of one record’s JSON this reader holds in memory.
RECORD_NOT_FOUND 🔒
The atproto error name a repository answers with for “there is no record at that key” – the one 400 this reader reads as absence rather than as a failure, exactly as didbot_serve::operator_poll does.

Traits§

Fetch
One round trip to a repository this deployment does not hold.
LocalRepositories
What this deployment already holds, so the reader never fetches it over the network.

Functions§

urlencode 🔒
Percent-encodes everything a query parameter’s value may not carry literally, so a DID, an NSID or a record key reaches the remote server as one value rather than as extra parameters.

Type Aliases§

FetchFuture
A future a Fetch implementation hands back, boxed so the trait stays object-safe and a reader can be held as Arc<dyn Fetch>.