xdns

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package xdns provides an extensible dns library

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type string
	AK   string
	SK   string
}

Config configures XDns when creating.

type XDns

type XDns interface {
	// AddDomainRecord add domain record to dns server.
	AddDomainRecord(t string, name string, value string) error
	// DeleteDomainRecord delete domain record from dns server.
	DeleteDomainRecord(t string, name string, value string) error
	// DnsDeleteDomainRecordByID delete domain record from dns server by record ID.
	DnsDeleteDomainRecordByID(id string) error
}

XDns is common dns interface.

func NewXDns

func NewXDns(conf *Config) XDns

NewXDns returns XDns.

Directories

Path Synopsis
Package alidns implements XDns interface.
Package alidns implements XDns interface.
Package xdnsutil provides a utility library for XDns.
Package xdnsutil provides a utility library for XDns.

Jump to

Keyboard shortcuts

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