domain

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domains

type Domains struct {
	IPv4Addr    string
	IPv4Domains map[string][]*dnsdomain.Domain // {dnspod:[]}
	IPv6Addr    string
	IPv6Domains map[string][]*dnsdomain.Domain // {dnspod:[]}
}

Domains Ipv4/Ipv6 domains

func NewDomains

func NewDomains() *Domains

func ParseDomain

func ParseDomain(conf *config.Config) (*Domains, error)

ParseDomain 接口获得ip并校验用户输入的域名

func (*Domains) Init

func (domains *Domains) Init(conf *config.Config) error

func (*Domains) TagValues

func (domains *Domains) TagValues(ipv4Changed, ipv6Changed bool) *dnsdomain.TagValues

func (*Domains) Update

func (domains *Domains) Update(ctx context.Context, conf *config.Config) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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