go-ddns-client/module/ddns/ddns.go
2019-05-08 22:44:28 +08:00

26 lines
348 B
Go

package ddns
import (
"errors"
"git.trj.tw/golang/go-ddns-client/module/config"
)
// Errors
var (
ErrNoDomain = errors.New("No Domain Setting")
)
// SendDNSSetting -
func SendDNSSetting() error {
conf := config.GetConfig()
if len(conf.Domains) == 0 {
return ErrNoDomain
}
return nil
}
func parseConf(domains []config.DomainData) {
}