实现在域名解析中使用EdgeDNS

This commit is contained in:
GoEdgeLab
2021-06-02 18:13:48 +08:00
parent ed33d243a0
commit 3131343056
28 changed files with 731 additions and 174 deletions

View File

@@ -0,0 +1,17 @@
package dnstypes
type RecordType = string
const (
RecordTypeA RecordType = "A"
RecordTypeCNAME RecordType = "CNAME"
RecordTypeTXT RecordType = "TXT"
)
type Record struct {
Id string `json:"id"`
Name string `json:"name"`
Type RecordType `json:"type"`
Value string `json:"value"`
Route string `json:"route"`
}

View File

@@ -0,0 +1,7 @@
package dnstypes
// Route 线路描述
type Route struct {
Name string `json:"name"`
Code string `json:"code"`
}