Documentation ¶
Index ¶
- Variables
- func CopyHeadersMap(sm map[string]string) map[string]string
- func ResolveDomainAtServerList(queryType, domain string, dnsServerList []string) (string, error)
- func Run(firstDelay time.Duration, delay time.Duration)
- type Alidns
- type AlidnsRecord
- type AlidnsResp
- type AlidnsSubDomainRecords
- type BaiduCloud
- type BaiduCreateRequest
- type BaiduListRequest
- type BaiduModifyRequest
- type BaiduRecord
- type BaiduRecordsResp
- type Callback
- type Cloudflare
- type CloudflareRecord
- type CloudflareRecordsResp
- type CloudflareStatus
- type CloudflareZonesResp
- type DNS
- type DNSCommon
- type Dnspod
- type DnspodRecordListResp
- type DnspodStatus
- type Huaweicloud
- type HuaweicloudRecordsResp
- type HuaweicloudRecordsets
- type HuaweicloudZonesResp
- type Porkbun
- type PorkbunApiKey
- type PorkbunDomainCreateOrUpdateVO
- type PorkbunDomainQueryResponse
- type PorkbunDomainRecord
- type PorkbunResponse
Constants ¶
This section is empty.
Variables ¶
var DDNSService *service.Service
Functions ¶
func ResolveDomainAtServerList ¶
---------------------------------------------------------------------------------------------------
Types ¶
type Alidns ¶
https://help.aliyun.com/document_detail/29776.html?spm=a2c4g.11186623.6.672.715a45caji9dMA Alidns Alidns
type AlidnsRecord ¶ added in v1.2.1
AlidnsRecord record
type AlidnsSubDomainRecords ¶
type AlidnsSubDomainRecords struct { TotalCount int DomainRecords struct { Record []AlidnsRecord } }
AlidnsSubDomainRecords 记录
type BaiduCloud ¶
func (*BaiduCloud) Init ¶
func (baidu *BaiduCloud) Init(task *ddnscore.DDNSTaskInfo)
type BaiduCreateRequest ¶
type BaiduCreateRequest struct { Domain string `json:"domain"` RdType string `json:"rdType"` TTL int `json:"ttl"` Rdata string `json:"rdata"` ZoneName string `json:"zoneName"` }
BaiduCreateRequest 创建新解析请求的body json
type BaiduListRequest ¶
type BaiduListRequest struct { Domain string `json:"domain"` PageNum int `json:"pageNum"` PageSize int `json:"pageSize"` }
BaiduListRequest 获取解析列表请求的body json
type BaiduModifyRequest ¶
type BaiduModifyRequest struct { RecordId uint `json:"recordId"` Domain string `json:"domain"` View string `json:"view"` RdType string `json:"rdType"` TTL int `json:"ttl"` Rdata string `json:"rdata"` ZoneName string `json:"zoneName"` }
BaiduModifyRequest 修改解析请求的body json
type BaiduRecord ¶
type BaiduRecord struct { RecordId uint `json:"recordId"` Domain string `json:"domain"` View string `json:"view"` Rdtype string `json:"rdtype"` TTL int `json:"ttl"` Rdata string `json:"rdata"` ZoneName string `json:"zoneName"` Status string `json:"status"` }
BaiduRecord 单条解析记录
type BaiduRecordsResp ¶
type BaiduRecordsResp struct { TotalCount int `json:"totalCount"` Result []BaiduRecord `json:"result"` }
BaiduRecordsResp 获取解析列表拿到的结果
type Callback ¶
func (*Callback) CallbackHttpClientDo ¶
type Cloudflare ¶
Cloudflare Cloudflare实现
type CloudflareRecord ¶
type CloudflareRecord struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` Content string `json:"content"` Proxied bool `json:"proxied"` TTL int `json:"ttl"` }
CloudflareRecord 记录实体
type CloudflareRecordsResp ¶
type CloudflareRecordsResp struct { CloudflareStatus Result []CloudflareRecord }
CloudflareRecordsResp records
type CloudflareStatus ¶
CloudflareStatus 公共状态
type CloudflareZonesResp ¶
type CloudflareZonesResp struct { CloudflareStatus Result []struct { ID string Name string Status string Paused bool } }
CloudflareZonesResp cloudflare zones返回结果
type DNS ¶
type DNS interface { Init(task *ddnscore.DDNSTaskInfo) // 添加或更新IPv4/IPv6记录 AddUpdateDomainRecords() string }
DNS interface
type DNSCommon ¶
type DNSCommon struct {
// contains filtered or unexported fields
}
func (*DNSCommon) AddUpdateDomainRecords ¶
添加或更新IPv4/IPv6记录
func (*DNSCommon) SetCreateUpdateDomainFunc ¶
type Dnspod ¶
https://cloud.tencent.com/document/api/302/8516 Dnspod 腾讯云dns实现
type DnspodRecordListResp ¶
type DnspodRecordListResp struct { DnspodStatus Records []struct { ID string Name string Type string Value string Enabled string } }
DnspodRecordListResp recordListAPI结果
type DnspodStatus ¶
DnspodStatus DnspodStatus
type Huaweicloud ¶
https://support.huaweicloud.com/api-dns/dns_api_64001.html Huaweicloud Huaweicloud
type HuaweicloudRecordsResp ¶
type HuaweicloudRecordsResp struct {
Recordsets []HuaweicloudRecordsets
}
HuaweicloudRecordsResp 记录返回结果
type HuaweicloudRecordsets ¶
type HuaweicloudRecordsets struct { ID string Name string `json:"name"` ZoneID string `json:"zone_id"` Status string Type string `json:"type"` TTL int `json:"ttl"` Records []string `json:"records"` }
HuaweicloudRecordsets 记录
type HuaweicloudZonesResp ¶
type HuaweicloudZonesResp struct { Zones []struct { ID string Name string Recordsets []HuaweicloudRecordsets } }
HuaweicloudZonesResp zones response
type PorkbunApiKey ¶ added in v1.2.1
type PorkbunDomainCreateOrUpdateVO ¶ added in v1.2.1
type PorkbunDomainCreateOrUpdateVO struct { *PorkbunApiKey *PorkbunDomainRecord }
type PorkbunDomainQueryResponse ¶ added in v1.2.1
type PorkbunDomainQueryResponse struct { *PorkbunResponse Records []PorkbunDomainRecord `json:"records"` }
type PorkbunDomainRecord ¶ added in v1.2.1
type PorkbunResponse ¶ added in v1.2.1
type PorkbunResponse struct {
Status string `json:"status"`
}