Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Deprecated: use ma.P_DNS P_DNS = ma.P_DNS // Deprecated: use ma.P_DNS4 P_DNS4 = ma.P_DNS4 // Deprecated: use ma.P_DNS6 P_DNS6 = ma.P_DNS6 // Deprecated: use ma.P_DNSADDR P_DNSADDR = ma.P_DNSADDR )
Extracted from source of truth for multicodec codes: https://github.com/multiformats/multicodec
Variables ¶
View Source
var DefaultResolver = &Resolver{Backend: net.DefaultResolver}
View Source
var Dns4Protocol = ma.ProtocolWithCode(P_DNS4)
Deprecated: use ma.ProtocolWithCode(P_DNS4)
View Source
var Dns6Protocol = ma.ProtocolWithCode(P_DNS6)
Deprecated: use ma.ProtocolWithCode(P_DNS6)
View Source
var DnsProtocol = ma.ProtocolWithCode(P_DNS)
Deprecated: use ma.ProtocolWithCode(P_DNS)
View Source
var DnsaddrProtocol = ma.ProtocolWithCode(P_DNSADDR)
Deprecated: use ma.ProtocolWithCode(P_DNSADDR)
View Source
var ResolvableProtocols = []ma.Protocol{DnsaddrProtocol, Dns4Protocol, Dns6Protocol, DnsProtocol}
Functions ¶
Types ¶
type MockBackend ¶
func (*MockBackend) LookupIPAddr ¶
Click to show internal directories.
Click to hide internal directories.