Documentation ¶
Index ¶
Constants ¶
View Source
const ( DiscProto = "/disc/0.1" IdentityProto = "/id/0.1" )
View Source
const DNSRegex = `^/?(dns)(4|6)?/[^-|^/][A-Za-z0-9-]([^-|^/]?)+([\\-\\.]{1}[a-z0-9]+)*\\.[A-Za-z]{2,}(/?)$`
DNSRegex is a regex string to match against a valid dns/dns4/dns6 addr
Variables ¶
This section is empty.
Functions ¶
func AddrInfoToString ¶
AddrInfoToString converts an AddrInfo into a string representation that can be dialed from another node
func MultiAddrFromDNS ¶
MultiAddrFromDNS constructs a multiAddr from the passed in DNS address and port combination
Types ¶
type DialPriority ¶
type DialPriority uint64
const ( PriorityRequestedDial DialPriority = 1 PriorityRandomDial DialPriority = 10 )
Click to show internal directories.
Click to hide internal directories.