DNSPod和Alidns记录信息增加缓存

This commit is contained in:
GoEdgeLab
2022-10-20 21:47:21 +08:00
parent 5fc0cd688b
commit f5a62b80de
19 changed files with 474 additions and 26 deletions

View File

@@ -6,8 +6,7 @@ import (
"github.com/iwind/TeaGo/types"
)
type BaseProvider struct {
}
type BaseProvider struct{}
// WrapError 封装解析相关错误
func (this *BaseProvider) WrapError(err error, domain string, record *dnstypes.Record) error {
@@ -27,4 +26,3 @@ func (this *BaseProvider) WrapError(err error, domain string, record *dnstypes.R
}
return errors.New("record operation failed: '" + fullname + " " + record.Type + " " + record.Value + " " + types.String(record.TTL) + "': " + err.Error())
}