[WIP] first implementation stubs
This commit is contained in:
37
cmd/main.go
Normal file
37
cmd/main.go
Normal file
@@ -0,0 +1,37 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"git.uploadfilter24.eu/covidnetes/mail-dns-service/internal"
|
||||
"git.uploadfilter24.eu/covidnetes/mail-dns-service/internal/utils"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
cfg, err := internal.GenConfig()
|
||||
utils.ConfigureLogger(cfg)
|
||||
|
||||
if err != nil {
|
||||
log.WithFields(log.Fields{
|
||||
"Caller": "Main",
|
||||
}).Fatal(fmt.Sprintf("Error generating Config: %s", err.Error()))
|
||||
}
|
||||
|
||||
go func() {
|
||||
log.WithFields(log.Fields{
|
||||
"Caller": "Main",
|
||||
}).Info("Starting Health Endpoint")
|
||||
internal.StartHealthEndpoint()
|
||||
}()
|
||||
|
||||
log.WithFields(log.Fields{
|
||||
"Caller": "Main",
|
||||
}).Info("Entering main event loop")
|
||||
|
||||
for {
|
||||
time.Sleep(15 * time.Minute)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user