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
Click to show internal directories.
Click to hide internal directories.