add powerdns,http request apply.

This commit is contained in:
Roy
2024-10-19 22:46:15 +08:00
parent 4382474449
commit d6d296b546
12 changed files with 88 additions and 330 deletions

View File

@@ -28,6 +28,8 @@ const (
configTypeCloudflare = "cloudflare"
configTypeNamesilo = "namesilo"
configTypeGodaddy = "godaddy"
configTypePdns = "pdns"
configTypeHttpreq = "httpreq"
)
const defaultSSLProvider = "letsencrypt"
@@ -135,6 +137,10 @@ func Get(record *models.Record) (Applicant, error) {
return NewNamesilo(option), nil
case configTypeGodaddy:
return NewGodaddy(option), nil
case configTypePdns:
return NewPdns(option), nil
case configTypeHttpreq:
return NewHttpreq(option), nil
default:
return nil, errors.New("unknown config type")
}