Documentation ¶
Index ¶
- Constants
- Variables
- func BasView(conn *ethclient.Client) *eth.BasView
- func GetCallOpts(blockNumber uint64) *bind.CallOpts
- func Split(buffer []byte, s byte) []string
- type Config
- type DNSResolver
- func (ds *DNSResolver) BMailBCA(mailHash string) (bmail.Address, string)
- func (ds *DNSResolver) DomainA(domain string) []net.IP
- func (ds *DNSResolver) DomainA2(domainName string) ([]net.IP, error)
- func (ds *DNSResolver) DomainA3(domain string) ([]net.IP, []string, error)
- func (ds *DNSResolver) DomainMX(domainMX string) ([]net.IP, []bmail.Address)
- type EthResolver
- func (er *EthResolver) BMailBCA(mailName string) (bmail.Address, string)
- func (er *EthResolver) BMailBCARetErr(mailName string) (bmail.Address, string, error)
- func (er *EthResolver) DomainA(domain string) []net.IP
- func (er *EthResolver) DomainA2(domain string) ([]net.IP, error)
- func (er *EthResolver) DomainA3(domain string) ([]net.IP, []string, error)
- func (er *EthResolver) DomainMX(domain string) ([]net.IP, []bmail.Address)
- func (er *EthResolver) DomainMXRetErr(domain string) ([]net.IP, []bmail.Address, error)
- type EthResolverConf
- type Hash
- type MailInfo
- type NameResolver
Constants ¶
View Source
const Separator = 0x7f
Variables ¶
View Source
var RetryRule = map[int]int{
1: 1,
2: 2,
3: 3,
}
Functions ¶
func GetCallOpts ¶
Types ¶
type Config ¶
type Config struct { A []byte AAAA []byte MX []byte BlockChain []byte IOTA []byte CName []byte MXBCA []byte }
func ConvertToConfig ¶
func QueryDomainConfigs ¶
type DNSResolver ¶
type DNSResolver struct { }
func (*DNSResolver) BMailBCA ¶
func (ds *DNSResolver) BMailBCA(mailHash string) (bmail.Address, string)
type EthResolver ¶
type EthResolver struct { }
func (*EthResolver) BMailBCA ¶
func (er *EthResolver) BMailBCA(mailName string) (bmail.Address, string)
func (*EthResolver) BMailBCARetErr ¶
func (er *EthResolver) BMailBCARetErr(mailName string) (bmail.Address, string, error)
func (*EthResolver) DomainMX ¶
func (er *EthResolver) DomainMX(domain string) ([]net.IP, []bmail.Address)
func (*EthResolver) DomainMXRetErr ¶
func (er *EthResolver) DomainMXRetErr(domain string) ([]net.IP, []bmail.Address, error)
type EthResolverConf ¶
var ResConf *EthResolverConf
type MailInfo ¶
type MailInfo struct { Owner common.Address Expiration *big.Int DomainHash [32]byte IsValid bool AliasName string BcAddress bmail.Address }
func ConvertToMailInfo ¶
func QueryEmailInfo ¶
type NameResolver ¶
type NameResolver interface { DomainA(domainName string) []net.IP DomainA2(domainName string) ([]net.IP, error) DomainA3(domain string) ([]net.IP, []string, error) DomainMX(domainName string) ([]net.IP, []bmail.Address) BMailBCA(mailName string) (address bmail.Address, cname string) }
func NewDnsResolver ¶
func NewDnsResolver() NameResolver
func NewEthResolver ¶
func NewEthResolver(debug bool) NameResolver
Click to show internal directories.
Click to hide internal directories.