dnspod

package
v0.0.0-...-7c36ba8 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: Apache-2.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 Handler

type Handler struct {
	Configuration *godns.Settings
}

Handler struct definition

func (*Handler) DomainLoop

func (handler *Handler) DomainLoop(domain *godns.Domain, panicChan chan<- godns.Domain)

DomainLoop the main logic loop

func (*Handler) GenerateHeader

func (handler *Handler) GenerateHeader(content url.Values) url.Values

GenerateHeader generates the request header for DNSPod API

func (*Handler) GetDomain

func (handler *Handler) GetDomain(name string) int64

GetDomain returns specific domain by name

func (*Handler) GetSubDomain

func (handler *Handler) GetSubDomain(domainID int64, name string) (string, string)

GetSubDomain returns subdomain by domain id

func (*Handler) PostData

func (handler *Handler) PostData(url string, content url.Values) (string, error)

PostData post data and invoke DNSPod API

func (*Handler) SetConfiguration

func (handler *Handler) SetConfiguration(conf *godns.Settings)

SetConfiguration pass dns settings and store it to handler instance

func (*Handler) UpdateIP

func (handler *Handler) UpdateIP(domainID int64, subDomainID string, subDomainName string, ip string)

UpdateIP update subdomain with current IP

Jump to

Keyboard shortcuts

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