IrohBeam.EndpointAddr (iroh_beam v0.2.0)

View Source

Endpoint identity plus current relay and direct socket addresses.

Duplicate addresses are removed and all values use upstream Iroh ordering and normalization. An address containing only an endpoint ID still requires an address-lookup source when it is dialed.

Summary

Types

t()

@type t() :: %IrohBeam.EndpointAddr{
  id: IrohBeam.EndpointId.t(),
  ip_addrs: [String.t()],
  relay_urls: [String.t()]
}

Functions

new(id, options \\ [])

@spec new(
  IrohBeam.EndpointId.t(),
  keyword()
) :: {:ok, t()} | {:error, IrohBeam.Error.t()}