dnspod

package
v0.0.0-...-a368336 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsPodError

type DnsPodError struct {
	// contains filtered or unexported fields
}

func (*DnsPodError) Error

func (err *DnsPodError) Error() string

type Dnspod

type Dnspod struct {
	// contains filtered or unexported fields
}

func New

func New(name, psw, domain_id string) *Dnspod

func (*Dnspod) CreateA

func (d *Dnspod) CreateA(domain, ip string) (string, error)

func (*Dnspod) CreateC

func (d *Dnspod) CreateC(domain, ip string) (string, error)

func (*Dnspod) DelRecord

func (d *Dnspod) DelRecord(id string) error

type Record

type Record struct {
	Id     string `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"`
}

type Response

type Response struct {
	Status `json:"status"`
	Record `json:"record"`
}

type Status

type Status struct {
	Code      string `json:"code"`
	Message   string `json:"message"`
	Create_at string `json:"create_at"`
}

Jump to

Keyboard shortcuts

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