合并杂项功能服务器节点到multi服务器节点

This commit is contained in:
flswld committed 2023-10-22 19:46:08 +08:00
1 parent 64699c23d7
commit 6cca998915
42 files changed
+344 -647

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
[hk4e]
game_data_config_path = "./game_data_config" # 配置表路径
[logger]
level = "DEBUG"
mode = "CONSOLE"
track = true
max_size = 10485760
[mq]
nats_url = "nats://nats:4222"
+31
View File
@@ -0,0 +1,31 @@
package main
import (
"context"
"flag"
"fmt"
_ "net/http/pprof"
"os"
"hk4e/multi/app"
"hk4e/pkg/statsviz_serve"
)
var (
config = flag.String("config", "application.toml", "config file")
)
var VERSION = "UNKNOWN"
func main() {
flag.Parse()
go func() {
_ = statsviz_serve.Serve("0.0.0.0:5678")
}()
app.APPVERSION = VERSION
err := app.Run(context.TODO(), *config)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}