initial commit
Some checks failed
CI / Go — node-agent tests (push) Has been cancelled
CI / Go — edge-gateway build (push) Has been cancelled
CI / Node — lint, typecheck, test, build (push) Has been cancelled

This commit is contained in:
smueller
2026-06-26 10:45:08 +02:00
commit e37ea87b35
118 changed files with 7726 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package main
import (
"context"
"log/slog"
"os"
"github.com/hexahost/gamecloud/node-agent/internal/agent"
"github.com/hexahost/gamecloud/node-agent/internal/config"
)
func main() {
log := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelInfo,
}))
cfg, err := config.Load()
if err != nil {
log.Error("configuration error", "error", err)
os.Exit(1)
}
log = log.With("node_id", cfg.NodeID, "component", "node-agent")
if err := agent.New(cfg, log).Run(context.Background()); err != nil {
log.Error("agent exited with error", "error", err)
os.Exit(1)
}
}