Module endpoint_info

Module endpoint_info 

Source
Expand description

Support for handling DNS resource records for dialing by EndpointId.

Dialing by EndpointId is supported by iroh endpoints publishing Pkarr records to DNS servers or the Mainline DHT. This module supports creating and parsing these records.

DNS records are published under the following names:

_iroh.<z32-endpoint-id>.<origin-domain> TXT

The returned TXT records must contain a string value of the form key=value as defined in RFC1464. The following attributes are defined:

  • relay=<url>: The home RelayUrl of this endpoint.

  • addr=<addr> <addr>: A space-separated list of sockets addresses for this iroh endpoint. Each address is an IPv4 or IPv6 address with a port.

Structs§

EndpointData
Data about an endpoint that may be published to and resolved from discovery services.
EndpointInfo
Information about an endpoint that may be published to and resolved from discovery services.
MaxLengthExceededError
Error returned when an input value is too long for UserData.
UserData
Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Enums§

DecodingError
EncodingError
ParseError

Constants§

IROH_TXT_NAME
The DNS name for the iroh TXT record.

Traits§

EndpointIdExt
Extension methods for EndpointId to encode to and decode from [z32], which is the encoding used in [pkarr] domain names.