Skip to main content

Module onion_proxy

Module onion_proxy 

Source
Expand description

Configure and implement onion service reverse-proxy feature.

Re-exportsยง

use std::collections::BTreeMap; ๐Ÿ”’
use std::collections::HashSet; ๐Ÿ”’
use std::collections::btree_map::Entry; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use arti_client::config::onion_service::OnionServiceConfig; ๐Ÿ”’
use arti_client::config::onion_service::OnionServiceConfigBuilder; ๐Ÿ”’
use futures::StreamExt as _; ๐Ÿ”’
use tor_config::ConfigBuildError; ๐Ÿ”’
use tor_config::Flatten; ๐Ÿ”’
use tor_config::Reconfigure; ๐Ÿ”’
use tor_config::ReconfigureError; ๐Ÿ”’
use tor_config::define_list_builder_helper; ๐Ÿ”’
use tor_config::impl_standard_builder; ๐Ÿ”’
use tor_error::warn_report; ๐Ÿ”’
use tor_hsrproxy::OnionServiceReverseProxy; ๐Ÿ”’
use tor_hsrproxy::ProxyConfig; ๐Ÿ”’
use tor_hsrproxy::config::ProxyConfigBuilder; ๐Ÿ”’
use tor_hsservice::HsNickname; ๐Ÿ”’
use tor_hsservice::RunningOnionService; ๐Ÿ”’
use tor_rtcompat::Runtime; ๐Ÿ”’
use tor_rtcompat::SpawnExt; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use crate::reload_cfg::ReconfigurableModule; ๐Ÿ”’

Structsยง

OnionServiceProxyConfig
Configuration for running an onion service from arti.
OnionServiceProxyConfigBuilder
Builder object to construct an OnionServiceProxyConfig.
OnionServiceProxyConfigMapBuilder
Wrapper struct to help derive_builder find the right types and methods
Proxy ๐Ÿ”’
A running onion service and an associated reverse proxy.
ProxySet ๐Ÿ”’
A set of configured onion service proxies.

Functionsยง

build_list ๐Ÿ”’
Construct a OnionServiceProxyConfigMap from a Vec of OnionServiceProxyConfig; enforce that HsNicknames are unique.

Type Aliasesยง

OnionServiceProxyConfigMap ๐Ÿ”’
Alias for a BTreeMap of OnionServiceProxyConfig; used to make derive_builder happy.
ProxyBuilderMap ๐Ÿ”’
The serialized format of an OnionServiceProxyConfigMapBuilder: a map from HsNickname to OnionServiceConfigBuilder.