doapiv2

package
v0.0.0-...-f406156 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainRecord

type DomainRecord struct {
	Id       int    `json:"id"`
	Type     string `json:"type"`
	Name     string `json:"name"`
	Data     string `json:"data"`
	Priority *int   `json:"priority"`
	Port     *int   `json:"port"`
	TTL      int    `json:"ttl"`
	Weight   *int   `json:"weight"`
	Flags    *int   `json:"flags"`
	Tag      string `json:"tag"`
}

func CreateDomainRecord

func CreateDomainRecord(domainName string, token string, record DomainRecord) (DomainRecord, error)

func GetAllDomainRecords

func GetAllDomainRecords(domainName string, token string) ([]DomainRecord, error)

func GetDomainRecordsByNameAndType

func GetDomainRecordsByNameAndType(domainName string, token string, recordType string, hostName string) ([]DomainRecord, error)

func UpdateDomainRecord

func UpdateDomainRecord(domainName string, token string, record DomainRecord) (DomainRecord, error)

Jump to

Keyboard shortcuts

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