2018-07-04 10:51:47 +00:00
|
|
|
package madns
|
|
|
|
|
|
|
|
import (
|
|
|
|
ma "github.com/multiformats/go-multiaddr"
|
|
|
|
)
|
|
|
|
|
2019-06-09 07:24:20 +00:00
|
|
|
// Extracted from source of truth for multicodec codes: https://github.com/multiformats/multicodec
|
|
|
|
const (
|
2019-10-04 15:21:24 +00:00
|
|
|
// 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
|
2019-06-09 07:24:20 +00:00
|
|
|
)
|
|
|
|
|
2019-10-04 15:21:24 +00:00
|
|
|
// Deprecated: use ma.ProtocolWithCode(P_DNS4)
|
|
|
|
var Dns4Protocol = ma.ProtocolWithCode(P_DNS4)
|
2018-07-04 10:51:47 +00:00
|
|
|
|
2019-10-04 15:21:24 +00:00
|
|
|
// Deprecated: use ma.ProtocolWithCode(P_DNS6)
|
|
|
|
var Dns6Protocol = ma.ProtocolWithCode(P_DNS6)
|
2018-07-04 10:51:47 +00:00
|
|
|
|
2019-10-04 15:21:24 +00:00
|
|
|
// Deprecated: use ma.ProtocolWithCode(P_DNSADDR)
|
|
|
|
var DnsaddrProtocol = ma.ProtocolWithCode(P_DNSADDR)
|