Documentation ¶
Index ¶
- Variables
- func AddSubDomainRecord(subDomain *alidns.Record) error
- func GetAliYunClient() (*alidns.Client, error)
- func GetMyIPV6ByLocal() string
- func GetMyPublicIpv4() string
- func GetMyPublicIpv6() string
- func GetSubDomains(mainDomian string) (*alidns.DescribeDomainRecordsResponse, error)
- func UpdateSubDomain(subDomain *alidns.Record) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Ipv4APIUrls = []string{
"http://whatismyip.akamai.com",
"http://v4.ipv6-test.com/api/myip.php",
"http://checkip.amazonaws.com",
"api.ipify.org",
"canhazip.com",
"ident.me",
"whatismyip.akamai.com",
"myip.dnsomatic.com",
"http://members.3322.org/dyndns/getip",
"http://ifconfig.me/ip",
"http://ip.3322.net",
"https://myexternalip.com/raw",
"http://ipv4.ident.me",
"http://ipv4.icanhazip.com",
"http://nsupdate.info/myip",
"http://ipv4.myip.dk/api/info/IPv4Address",
"http://checkip4.spdyn.de",
"http://ipinfo.io/ip",
}
View Source
var Ipv6APIUrls = []string{
"http://v6.ipv6-test.com/api/myip.php",
"http://bbs6.ustc.edu.cn/cgi-bin/myip",
"http://ipv6.ident.me",
"http://ipv6.icanhazip.com",
"http://ipv6.yunohost.org",
}
Functions ¶
func AddSubDomainRecord ¶
func GetAliYunClient ¶
func GetMyPublicIpv4 ¶
func GetMyPublicIpv4() string
func GetMyPublicIpv6 ¶
func GetMyPublicIpv6() string
func GetSubDomains ¶
func GetSubDomains(mainDomian string) (*alidns.DescribeDomainRecordsResponse, error)
func UpdateSubDomain ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.