gateway

command
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Gateway binary: serves GraphQL on :8080 and a control plane on :50090. Boots empty; services register themselves at runtime. Optionally embeds a NATS server and forms a cluster with peer gateways.

# single-node
$ go run ./cmd/gateway --nats-data /tmp/gw1

# 3-node, gateway 1 is the seed
$ go run ./cmd/gateway --nats-data /tmp/gw1 \
    --nats-listen :14222 --nats-cluster :14248
$ go run ./cmd/gateway --nats-data /tmp/gw2 \
    --nats-listen :14223 --nats-cluster :14249 \
    --http :8081 --control-plane :50091 --nats-peer localhost:14248
$ go run ./cmd/gateway --nats-data /tmp/gw3 \
    --nats-listen :14224 --nats-cluster :14250 \
    --http :8082 --control-plane :50092 --nats-peer localhost:14248

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL