fix(go): repair migration wire contracts and runtime lifecycle; document incomplete port

This commit is contained in:
CAtlas0784 committed 2026-10-29 15:35:35 +07:00
1 parent e43a310617
commit 32e47014b5
35 files changed
+16826 -438

No files matched your search

+5 -3
View File
@@ -9,11 +9,11 @@ import (
"syscall"
"ananta-ps/internal/config"
"ananta-ps/pkg/protocol"
"ananta-ps/internal/gameserver"
"ananta-ps/internal/gateway"
"ananta-ps/internal/logingate"
"ananta-ps/internal/web"
"ananta-ps/pkg/protocol"
)
const banner = `
@@ -34,7 +34,9 @@ func main() {
fmt.Print(banner)
cfg, err := config.LoadConfig(*configPath)
_ = protocol.LoadMethodCatalog("data/client_data/MethodIds.json")
if err := protocol.LoadMethodCatalog("data/client_data/MethodIds.json"); err != nil {
log.Printf("[PROTOCOL] Using compiled method catalog: %v", err)
}
if err != nil {
log.Fatalf("[FATAL] Could not load configuration: %v", err)
}
@@ -45,7 +47,7 @@ func main() {
// 1. Start Gateway (Port 443, 80, 5801)
gw := gateway.New(cfg, "", "")
if err := gw.Start(); err != nil {
log.Printf("[GATEWAY] Error starting gateway: %v", err)
log.Fatalf("[GATEWAY] Failed to start gateway: %v", err)
}
defer gw.Stop()