Files
HexaHost-GameCloud/apps/edge-gateway/cmd/gateway/main.go
smueller e37ea87b35
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
initial commit
2026-06-26 10:45:08 +02:00

30 lines
683 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package main
import (
"log/slog"
"os"
)
func main() {
log := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelInfo,
}))
enabled := os.Getenv("EDGE_GATEWAY_ENABLED")
if enabled != "true" && enabled != "1" {
log.Info("edge gateway disabled for MVP",
"feature", "edge-gateway",
"status", "not_implemented",
"message", "Join-to-Start TCP/UDP gateway is planned for Phase 8; set EDGE_GATEWAY_ENABLED=true to acknowledge early enablement",
)
os.Exit(0)
}
log.Info("edge gateway not implemented in MVP",
"feature", "edge-gateway",
"status", "not_implemented",
"roadmap", "Phase 8 DNS and Join-to-Start",
)
os.Exit(0)
}