21 lines
408 B
Go
21 lines
408 B
Go
package dns
|
|
|
|
import "net/http"
|
|
|
|
type Provider interface {
|
|
SetDomainRecord(domain, ip string) error
|
|
}
|
|
|
|
type Config struct {
|
|
Provider string
|
|
IP string
|
|
Conf map[string]interface{}
|
|
Http *http.Client
|
|
}
|
|
|
|
type BasicConfig struct {
|
|
Domain string `mapstructure:"domain"`
|
|
TTL uint `mapstructure:"ttl"`
|
|
Other map[string]interface{} `mapstructure:",remain"`
|
|
}
|