实现基本的集群DNS列表、设置、简单数据同步

This commit is contained in:
GoEdgeLab
2020-11-13 18:22:22 +08:00
parent 7f61c82c52
commit f17f987636
51 changed files with 1074 additions and 391 deletions

View File

@@ -0,0 +1,17 @@
package dnsclients
type RecordType = string
const (
RecordTypeA RecordType = "A"
RecordTypeCName RecordType = "CNAME"
RecordTypeText 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"`
}