实现基本的集群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,24 @@
package dnsclients
import "github.com/iwind/TeaGo/maps"
// DNS操作接口
type ProviderInterface interface {
// 认证
Auth(params maps.Map) error
// 获取域名列表
GetRecords(domain string) (records []*Record, err error)
// 读取域名支持的线路数据
GetRoutes(domain string) (routes []string, err error)
// 设置记录
AddRecord(domain string, newRecord *Record) error
// 修改记录
UpdateRecord(domain string, record *Record, newRecord *Record) error
// 删除记录
DeleteRecord(domain string, record *Record) error
}