Skip to main content

Module docid

Module docid 

Source
Expand description

Declare a general purpose “document ID type” for tracking which documents we want and which we have.

Re-exports§

use std::collections::HashMap; 🔒
use tracing::trace; 🔒
use crate::DocumentText; 🔒
use crate::storage::Store; 🔒
use tor_dirclient::request; 🔒
use tor_netdoc::doc::routerdesc::RdDigest; 🔒
use tor_netdoc::doc::authcert::AuthCertKeyIds; 🔒
use tor_netdoc::doc::microdesc::MdDigest; 🔒
use tor_netdoc::doc::netstatus::ConsensusFlavor; 🔒

Enums§

CacheUsage
Description of how to start out a given bootstrap attempt.
ClientRequest 🔒
A request for a specific kind of directory resource that a DirMgr can request.
DocId
The identity of a single document, in enough detail to load it from storage.
DocQuery 🔒
A group of DocIds that can be downloaded or loaded from the database together.
DocType 🔒
The underlying type of a DocId.

Functions§

partition_by_type 🔒
Given a list of DocId, split them up into queries, by type.