Expand description
TEMPORARY, EXPERIMENTAL implementation of a Store-backed DirBackendPlugin.
This is throw-away code. It exists so that arti relays can pretend to be rudimentary directory caches before tor-dirserver is finished.
Re-exportsยง
use std::sync::Arc;๐use std::sync::Mutex;๐use tor_llcrypto::pk::rsa::RsaIdentity;๐use tor_netdoc::doc::authcert::AuthCertKeyIds;๐use tor_netdoc::doc::microdesc;๐use tor_netdoc::doc::microdesc::MdDigest;๐use tor_netdoc::doc::netstatus::ConsensusFlavor;๐use tor_netdoc::types::FixedB64;๐use crate::storage::DynStore;๐use tor_dircommon::dir_plugin_backend::DirBackendPlugin;๐use tor_dircommon::dir_plugin_backend::DirBackendPluginError;๐use tor_dircommon::dir_plugin_backend::http;๐use tor_error::into_internal;๐use web_time_compat::SystemTime;๐
Structsยง
- DirPlugin
- An implementation of
DirBackendPluginbased on aDirMgrโs sqlite database.
Enumsยง
- ReqError ๐
- An error that has occurred while trying to answer a request.
- UriInterpretation ๐
- An accepted interpretation of a directory URI.
Functionsยง
- decode_
fp_ ๐pair - Try to parse an authority fingerprint pair as it appears in URIs.
- decode_
md_ ๐digest - Try to parse a base64 MD digest as it appears in URIs.
- parse_
date ๐ - Try to parse an HTTP date.