Documentation ¶
Index ¶
Constants ¶
View Source
const ( P_DNS4 = 0x0036 P_DNS6 = 0x0037 P_DNSADDR = 0x0038 )
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.Protocol{ Code: P_DNS4, Size: ma.LengthPrefixedVarSize, Name: "dns4", VCode: ma.CodeToVarint(P_DNS4), Transcoder: DnsTranscoder, }
View Source
var Dns6Protocol = ma.Protocol{ Code: P_DNS6, Size: ma.LengthPrefixedVarSize, Name: "dns6", VCode: ma.CodeToVarint(P_DNS6), Transcoder: DnsTranscoder, }
View Source
var DnsTranscoder = ma.NewTranscoderFromFunctions(dnsStB, dnsBtS, dnsVal)
View Source
var DnsaddrProtocol = ma.Protocol{ Code: P_DNSADDR, Size: ma.LengthPrefixedVarSize, Name: "dnsaddr", VCode: ma.CodeToVarint(P_DNSADDR), Transcoder: DnsTranscoder, }
View Source
var ResolvableProtocols = []ma.Protocol{DnsaddrProtocol, Dns4Protocol, Dns6Protocol}
Functions ¶
Types ¶
type MockBackend ¶
func (*MockBackend) LookupIPAddr ¶
Click to show internal directories.
Click to hide internal directories.