feat: Add check service (WIP)
This commit is contained in:
5
main.go
5
main.go
@@ -3,11 +3,13 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"git.ostiwe.com/ostiwe-com/status/model"
|
||||
"git.ostiwe.com/ostiwe-com/status/modules/db"
|
||||
appLog "git.ostiwe.com/ostiwe-com/status/modules/log"
|
||||
"git.ostiwe.com/ostiwe-com/status/router"
|
||||
"git.ostiwe.com/ostiwe-com/status/service"
|
||||
"git.ostiwe.com/ostiwe-com/status/version"
|
||||
"github.com/alexflint/go-arg"
|
||||
"github.com/go-chi/chi/v5"
|
||||
@@ -54,6 +56,9 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
appLog.Global.Get(appLog.SYSTEM).Info("Start service observer")
|
||||
go service.NewCheck(20).Start(time.Second * 10)
|
||||
|
||||
appLog.Global.Put(appLog.SERVER, logrus.New())
|
||||
appLog.Global.Get(appLog.SERVER).Info("Startup server on port: ", args.Server.Port)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user