Documentation ¶
Index ¶
- Variables
- func ContainsPublicAddr(addrs []ma.Multiaddr) bool
- func DefaultGatewayHTML(ctx context.Context) (string, error)
- func ExtractRelayMaddr(maddr ma.Multiaddr) (*peer.AddrInfo, error)
- func FmtPeerID(id peer.ID) string
- func IsRelayedMaddr(maddr ma.Multiaddr) bool
- func SupportDCUtR(protocols []string) bool
- func Unique[T comparable](input []T) *T
Constants ¶
This section is empty.
Variables ¶
View Source
var IDLength = 16
IDLength is here as a variable so that it can be decreased for tests with mocknet where IDs are way shorter. The call to FmtPeerID would panic if this value stayed at 16.
Functions ¶
func ContainsPublicAddr ¶
func DefaultGatewayHTML ¶ added in v0.6.0
DefaultGatewayHTML discovers the default gateway address and fetches the home HTML page to get a sense which router is used.
func ExtractRelayMaddr ¶ added in v0.6.0
func IsRelayedMaddr ¶
func SupportDCUtR ¶
func Unique ¶ added in v0.3.0
func Unique[T comparable](input []T) *T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.