1//go:build libdns_namedotdom || libdns_all2// +build libdns_namedotdom libdns_all34package libdns56import (7 "github.com/foxcpp/maddy/framework/config"8 "github.com/foxcpp/maddy/framework/module"9 "github.com/libdns/namedotcom"10)1112func init() {13 module.Register("libdns.namedotcom", func(modName, instName string, _, _ []string) (module.Module, error) {14 p := namedotcom.Provider{15 Server: "https://api.name.com",16 }17 return &ProviderModule{18 RecordDeleter: &p,19 RecordAppender: &p,20 setConfig: func(c *config.Map) {21 c.String("user", false, false, "", &p.User)22 c.String("token", false, false, "", &p.Token)23 },24 instName: instName,25 modName: modName,26 }, nil27 })28}