utils

package
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 AddSubDomainRecord(subDomain *alidns.Record) error

func GetAliYunClient

func GetAliYunClient() (*alidns.Client, error)

func GetMyIPV6ByLocal

func GetMyIPV6ByLocal() string

GetMyIPV6ByLocal TODO Test

func GetMyPublicIpv4

func GetMyPublicIpv4() string

func GetMyPublicIpv6

func GetMyPublicIpv6() string

func GetSubDomains

func GetSubDomains(mainDomian string) (*alidns.DescribeDomainRecordsResponse, error)

func UpdateSubDomain

func UpdateSubDomain(subDomain *alidns.Record) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL