record

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Cmd 命令集
	Cmd = &cobra.Command{
		Use:   "record <subcommand>",
		Short: "域名解析管理",
	}
)

Functions

This section is empty.

Types

type CountInfo

type CountInfo struct {
	// 符合条件的域名数量
	DomainTotal uint64 `json:"DomainTotal"`
	// 用户可以查看的所有域名数量
	AllTotal uint64 `json:"AllTotal"`
	// 用户账号添加的域名数量
	MineTotal uint64 `json:"MineTotal"`
	// 共享给用户的域名数量
	ShareTotal uint64 `json:"ShareTotal"`
	// 付费域名数量
	VipTotal uint64 `json:"VipTotal"`
	// 暂停的域名数量
	PauseTotal uint64 `json:"PauseTotal"`
	// dns设置错误的域名数量
	ErrorTotal uint64 `json:"ErrorTotal"`
	// 锁定的域名数量
	LockTotal uint64 `json:"LockTotal"`
	// 封禁的域名数量
	SpamTotal uint64 `json:"SpamTotal"`
	// 30天内即将到期的域名数量
	VipExpire uint64 `json:"VipExpire"`
	// 分享给其它人的域名数量
	ShareOutTotal uint64 `json:"ShareOutTotal"`
	// 指定分组内的域名数量
	GroupTotal uint64 `json:"GroupTotal"`
}

CountInfo 解析记录统计信息

type Info

type Info struct {
	DomainID uint64 `json:"DomainId"`
	Enabled  uint64 `json:"Enabled"`
	ID       uint64 `json:"Id"`
	Line     string `json:"RecordLine"`
	LineID   string `json:"RecordLineId"`
	RecordID uint64 `json:"RecordId"`
	Remark   string `json:"Remark"`
	RR       string `json:"SubDomain"`
	TTL      uint64 `json:"TTL"`
	Type     string `json:"RecordType"`
	Updated  string `json:"UpdatedOn"`
	Value    string `json:"Value"`
	Weight   uint64 `json:"Weight"`
}

Info 解析记录信息

type InfoResp

type InfoResp struct {
	Response struct {
		RecordInfo Info   `json:"RecordInfo"`
		RequestID  string `json:"RequestId"`
	} `json:"Response"`
}

InfoResp 解析记录信息返回体

type Record

type Record struct {
	ID      uint64 `json:"RecordId"`
	Line    string `json:"Line"`
	LineID  string `json:"LineId"`
	Name    string `json:"Name"`
	Remark  string `json:"Remark"`
	Status  string `json:"Status"`
	TTL     uint64 `json:"TTL"`
	Type    string `json:"Type"`
	Updated string `json:"UpdatedOn"`
	Value   string `json:"Value"`
	Weight  uint64 `json:"Weight"`
}

Record 解析记录信息

type Records

type Records struct {
	Response struct {
		RecordCountInfo CountInfo `json:"RecordCountInfo"`
		RecordList      []Record  `json:"RecordList"`
		RequestID       string    `json:"RequestId"`
	} `json:"Response"`
}

Records 解析记录列表

Jump to

Keyboard shortcuts

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