Documentation
¶
Index ¶
- Constants
- Variables
- func CreateA(name string, ips []string) (result []dns.RR)
- func CreateAAAA(name string, ips []string) (result []dns.RR)
- func DecodeIPs(data string) (ip4, ip6 []string)
- func DomainLevel(s string, level int) string
- func EncodeIPs(ip4, ip6 []string) string
- func Interval(ctx context.Context, interval time.Duration, call func(context.Context))
- func ReadClose(r io.ReadCloser) ([]byte, error)
- func Retry(count int, ttl time.Duration, call func() error)
- func StringError(err error) string
- func Tag(s string) string
- func ValidateDNS(ip string) (string, error)
- func ValidateDNSs(list []string) (result []string)
- func ValidateDomain(domain string) (string, error)
Constants ¶
View Source
const (
TTL = 3600
)
Variables ¶
View Source
var (
ErrInvalidIP = errors.New("invalid ip")
)
Functions ¶
func DomainLevel ¶ added in v1.4.2
func StringError ¶ added in v1.4.0
func ValidateDNS ¶
func ValidateDNSs ¶
func ValidateDomain ¶ added in v1.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.