feat: Add check service (WIP)

This commit is contained in:
2025-07-21 01:59:03 +03:00
parent 691d1e7275
commit 87defbf391
9 changed files with 219 additions and 7 deletions

View File

@@ -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)