pub struct PkarrResolver { /* private fields */ }
Expand description
Resolver of node discovery information from a pkarr relay.
The resolver uses HTTP to query node discovery information from a pkarr relay server, see the module docs for details.
This implements the Discovery
trait to be used as a node discovery service. Note
that it only resolves node discovery information, for the corresponding publisher use
the PkarrPublisher
together with ConcurrentDiscovery
.
Implementations§
Source§impl PkarrResolver
impl PkarrResolver
Sourcepub fn new(pkarr_relay: Url) -> Self
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
pub fn new(pkarr_relay: Url) -> Self
Creates a new publisher using the pkarr relay server at the URL.
Sourcepub fn n0_dns() -> Self
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
pub fn n0_dns() -> Self
Creates a pkarr resolver which uses the number 0 pkarr relay server.
This uses the pkarr relay server operated by number 0 at
N0_DNS_PKARR_RELAY_PROD
.
When running with the environment variable IROH_FORCE_STAGING_RELAYS
set to any non empty value N0_DNS_PKARR_RELAY_STAGING
server is used instead.
Trait Implementations§
Source§impl Clone for PkarrResolver
impl Clone for PkarrResolver
Source§fn clone(&self) -> PkarrResolver
fn clone(&self) -> PkarrResolver
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more