add root file

This commit is contained in:
DataHearth 2021-03-14 16:35:06 +01:00
parent ea00fb18de
commit 32862dda8f
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
1 changed files with 32 additions and 0 deletions

32
main.go Normal file
View File

@ -0,0 +1,32 @@
package ddnsclient
import (
"github.com/datahearth/ddnsclient/pkg/http"
"github.com/datahearth/ddnsclient/pkg/providers/ovh"
"github.com/sirupsen/logrus"
)
// Start create a new instance of ddns-client
func Start(logger logrus.FieldLogger) error {
ddnsHTTP, err := http.NewHTTP(logger)
if err != nil {
return err
}
ovh, err := ovh.NewOVH(logger)
if err != nil {
return err
}
check := make(chan bool)
c := make(chan bool)
for {
select {
case <-check:
case <-c:
break
}
}
return nil
}