temp push

This commit is contained in:
2025-12-01 13:40:58 +01:00
parent aac6db39c2
commit 4a668493c4
11 changed files with 559 additions and 116 deletions

24
main.go
View File

@@ -2,8 +2,10 @@ package main
import (
"flag"
"homestead/homestead_gateway/shared"
"fmt"
"homestead/homestead_gateway/controller"
"homestead/homestead_gateway/util/config"
"homestead/homestead_gateway/util/logger"
)
func main() {
@@ -13,6 +15,22 @@ func main() {
panic(err)
}
controller := shared.NewGatewayController(*cfg)
controller.Run()
l, c, e := logger.New("yomama", cfg.Log)
if e != nil {
panic(e)
}
defer c()
l.Debug("debug")
l.Info("info")
l.Warn("warn")
l.Error("error")
panic(fmt.Sprintf("%+v", cfg.Log))
ctrl := controller.NewGatewayController(*cfg)
err = ctrl.Run()
if err != nil {
panic(err)
}
}