Documentation ¶
Index ¶
- func CopyHeadersMap(sm map[string]string) map[string]string
- 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 Dnspod
- type DnspodRecordListResp
- type DnspodStatus
- type GoDaddy
- type Huaweicloud
- type HuaweicloudRecordsResp
- type HuaweicloudRecordsets
- type HuaweicloudZonesResp
- type Porkbun
- type PorkbunApiKey
- type PorkbunDomainCreateOrUpdateVO
- type PorkbunDomainQueryResponse
- type PorkbunDomainRecord
- type PorkbunResponse
- type Provider
- type ProviderCommon
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Alidns ¶
type Alidns struct { ProviderCommon TTL string }
https://help.aliyun.com/document_detail/29776.html?spm=a2c4g.11186623.6.672.715a45caji9dMA Alidns Alidns
type AlidnsRecord ¶
AlidnsRecord record
type AlidnsSubDomainRecords ¶
type AlidnsSubDomainRecords struct { TotalCount int DomainRecords struct { Record []AlidnsRecord } }
AlidnsSubDomainRecords 记录
type BaiduCloud ¶
type BaiduCloud struct { ProviderCommon TTL int }
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 ¶
type Callback struct { ProviderCommon TTL string }
func (*Callback) CallbackHttpClientDo ¶
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 Dnspod ¶
type Dnspod struct { ProviderCommon TTL string }
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 GoDaddy ¶
type GoDaddy struct { ProviderCommon TTL int // contains filtered or unexported fields }
type Huaweicloud ¶
type Huaweicloud struct { ProviderCommon TTL int }
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 Porkbun ¶
type Porkbun struct { ProviderCommon TTL string }
type PorkbunApiKey ¶
type PorkbunDomainCreateOrUpdateVO ¶
type PorkbunDomainCreateOrUpdateVO struct { *PorkbunApiKey *PorkbunDomainRecord }
type PorkbunDomainQueryResponse ¶
type PorkbunDomainQueryResponse struct { *PorkbunResponse Records []PorkbunDomainRecord `json:"records"` }
type PorkbunDomainRecord ¶
type PorkbunResponse ¶
type PorkbunResponse struct {
Status string `json:"status"`
}
type Provider ¶
type Provider interface { Init(task *ddnscore.DDNSTaskInfo) // 添加或更新IPv4/IPv6记录 AddUpdateDomainRecords() string }
Provider interface
type ProviderCommon ¶
type ProviderCommon struct {
// contains filtered or unexported fields
}
func (*ProviderCommon) AddUpdateDomainRecords ¶
func (d *ProviderCommon) AddUpdateDomainRecords() string
添加或更新IPv4/IPv6记录
func (*ProviderCommon) CreateHTTPClient ¶
func (d *ProviderCommon) CreateHTTPClient() (*http.Client, error)
func (*ProviderCommon) Init ¶
func (d *ProviderCommon) Init(task *ddnscore.DDNSTaskInfo)
func (*ProviderCommon) SetCreateUpdateDomainFunc ¶
func (d *ProviderCommon) SetCreateUpdateDomainFunc(f func(recordType, ipaddr string, domain *ddnscore.Domain))