dnspod

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	Status struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	} `json:"status"`
}

func (*BaseResponse) IsOk

func (this *BaseResponse) IsOk() bool

func (*BaseResponse) LastError

func (this *BaseResponse) LastError() (code string, message string)

type CustomLineGroupListResponse added in v1.0.4

type CustomLineGroupListResponse struct {
	BaseResponse

	Data struct {
		LineGroups []struct {
			Name string `json:"name"`
		} `json:"line_groups"`
		Info struct {
			NowTotal int `json:"now_total"`
			Total    int `json:"total"`
		} `json:"info"`
	} `json:"data"`
}

type DomainInfoResponse

type DomainInfoResponse struct {
	BaseResponse

	Domain struct {
		Id    any    `json:"id"`
		Name  string `json:"name"`
		Grade string `json:"grade"`
	} `json:"domain"`
}

type DomainListResponse

type DomainListResponse struct {
	BaseResponse

	Info struct {
		DomainTotal int `json:"domain_total"`
		AllTotal    int `json:"all_total"`
		MineTotal   int `json:"mine_total"`
	} `json:"info"`

	Domains []struct {
		Name string `json:"name"`
	} `json:"domains"`
}

type RecordCreateResponse

type RecordCreateResponse struct {
	BaseResponse

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

type RecordLineResponse

type RecordLineResponse struct {
	BaseResponse

	Lines []string `json:"lines"`
}

type RecordListResponse

type RecordListResponse struct {
	BaseResponse

	Info struct {
		SubDomains  string `json:"sub_domains"`
		RecordTotal string `json:"record_total"`
		RecordsNum  string `json:"records_num"`
	} `json:"info"`

	Records []struct {
		Id     any    `json:"id"`
		Name   string `json:"name"`
		Type   string `json:"type"`
		Value  string `json:"value"`
		Line   string `json:"line"`
		LineId string `json:"line_id"`
		TTL    string `json:"ttl"`
	} `json:"records"`
}

type RecordModifyResponse

type RecordModifyResponse struct {
	BaseResponse

	Record struct {
		Id     any    `json:"id"`
		Name   string `json:"name"`
		Value  string `json:"value"`
		Status string `json:"status"`
	} `json:"record"`
}

type RecordRemoveResponse

type RecordRemoveResponse struct {
	BaseResponse
}

type ResponseInterface

type ResponseInterface interface {
	IsOk() bool
	LastError() (code string, message string)
}

Jump to

Keyboard shortcuts

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