pub struct RelaySection {
pub hostname: Option<String>,
pub hostnames: Option<Vec<String>>,
}Expand description
Which relays didbot announce and the dashboard’s
POST /dashboard/api/relay/announce announce this server to, over
com.atproto.sync.requestCrawl and notifyOfUpdate. Every relay named
by either key is asked, hostname first, and a relay named twice is
asked once.
None — no [relay] table at all — means there is no relay to reach,
the same as never passing --relay-hostname; there is no default relay
address, because this project vendors nobody’s as one. A *.localhost
zone is left unwired regardless of what this section holds, since no
relay can reach a loopback address; see didbot_serve::relay’s own doc.
Reload: needs a restart. This is read once at startup and it does not itself trigger anything, so there is nothing to re-read on a running process.
Fields§
§hostname: Option<String>One relay’s hostname, e.g. bsky.network. Reached over https://
unconditionally — a relay worth announcing to is on the public
internet.
hostnames: Option<Vec<String>>Relay hostnames, in the form hostname takes. Mirrors
--relay-hostname, given once per relay. Zero to a few: each is
asked at once on every announce, with its own ten-second limit.
Trait Implementations§
Source§impl Clone for RelaySection
impl Clone for RelaySection
Source§fn clone(&self) -> RelaySection
fn clone(&self) -> RelaySection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RelaySection
impl Debug for RelaySection
Source§impl Default for RelaySection
impl Default for RelaySection
Source§fn default() -> RelaySection
fn default() -> RelaySection
Source§impl<'de> Deserialize<'de> for RelaySection
impl<'de> Deserialize<'de> for RelaySection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RelaySection
impl PartialEq for RelaySection
Source§fn eq(&self, other: &RelaySection) -> bool
fn eq(&self, other: &RelaySection) -> bool
self and other values to be equal, and is used by ==.