1//go:build libdns_acmedns || libdns_all2// +build libdns_acmedns libdns_all34package libdns56import (7 "github.com/foxcpp/maddy/framework/config"8 "github.com/foxcpp/maddy/framework/module"9 "github.com/libdns/acmedns"10)1112func init() {13 module.Register("libdns.acmedns", func(modName, instName string, _, _ []string) (module.Module, error) {14 p := acmedns.Provider{}15 return &ProviderModule{16 RecordDeleter: &p,17 RecordAppender: &p,18 setConfig: func(c *config.Map) {19 c.String("username", false, true, "", &p.Username)20 c.String("password", false, true, "", &p.Password)21 c.String("subdomain", false, true, "", &p.Subdomain)22 c.String("server_url", false, true, "", &p.ServerURL)23 },24 instName: instName,25 modName: modName,26 }, nil27 })28}