Directories
¶
| Path | Synopsis |
|---|---|
|
bench
|
|
|
cmd/perf
command
perf — adopter-facing performance report generator.
|
perf — adopter-facing performance report generator. |
|
cmd/register
command
register — long-running registration sidecar for the bench stack.
|
register — long-running registration sidecar for the bench stack. |
|
cmd/sub
command
sub — minimal graphql-transport-ws subscription client for bench.
|
sub — minimal graphql-transport-ws subscription client for bench. |
|
cmd/traffic
command
Traffic generator for the gateway bench stack.
|
Traffic generator for the gateway bench stack. |
|
cmd/traffic/runner
Package runner is the format-agnostic core of `bench traffic`.
|
Package runner is the format-agnostic core of `bench traffic`. |
|
examples
|
|
|
auth
command
Auth hide+inject example: the canonical case the library is shaped around.
|
Auth hide+inject example: the canonical case the library is shaped around. |
|
gat/server
command
gat example server.
|
gat example server. |
|
multi/cmd/gateway
command
Gateway binary: serves GraphQL on :8080 and a control plane on :50090.
|
Gateway binary: serves GraphQL on :8080 and a control plane on :50090. |
|
multi/cmd/greeter
command
Greeter service: starts a real gRPC server on :50051 and self-registers with the gateway's control plane.
|
Greeter service: starts a real gRPC server on :50051 and self-registers with the gateway's control plane. |
|
multi/cmd/hello-graphql
command
hello-graphql: a tiny native GraphQL service self-registering with the gateway via the GraphQL stitching path.
|
hello-graphql: a tiny native GraphQL service self-registering with the gateway via the GraphQL stitching path. |
|
multi/cmd/hello-openapi
command
hello-openapi: an HTTP/JSON service that exposes a single Hello operation, self-registers with the gateway via the OpenAPI control plane, and exists primarily so bench traffic openapi --direct has a format-native upstream to compare against.
|
hello-openapi: an HTTP/JSON service that exposes a single Hello operation, self-registers with the gateway via the OpenAPI control plane, and exists primarily so bench traffic openapi --direct has a format-native upstream to compare against. |
|
multi/cmd/hello-proto
command
hello-proto: a tiny native gRPC service self-registering with the gateway via the proto control plane.
|
hello-proto: a tiny native gRPC service self-registering with the gateway via the proto control plane. |
|
multi/cmd/library
command
Library service: real gRPC server on :50052, self-registers with the gateway.
|
Library service: real gRPC server on :50052, self-registers with the gateway. |
|
multi/cmd/mcp-demo
command
Worked example for the gateway's MCP integration.
|
Worked example for the gateway's MCP integration. |
|
sign
command
Sign-as-API worked example.
|
Sign-as-API worked example. |
|
Package gateway is a small library for fronting gRPC services with a GraphQL surface.
|
Package gateway is a small library for fronting gRPC services with a GraphQL surface. |
|
cmd/gwag
command
gwag context: a per-project ./.gw/ directory holding named logins and per-context runtime state.
|
gwag context: a per-project ./.gw/ directory holding named logins and per-context runtime state. |
|
controlclient
Package controlclient is the convenience layer subservices use to self-register with a gwag control plane: one Register call, a background heartbeat goroutine, and graceful Deregister on Close.
|
Package controlclient is the convenience layer subservices use to self-register with a gwag control plane: one Register call, a background heartbeat goroutine, and graceful Deregister on Close. |
|
gat
Package gat (GraphQL API Translator) is gwag's embedded sibling: a single-server, in-process translator that turns OpenAPI / proto / GraphQL specs into a GraphQL surface mountable on the adopter's existing huma router.
|
Package gat (GraphQL API Translator) is gwag's embedded sibling: a single-server, in-process translator that turns OpenAPI / proto / GraphQL specs into a GraphQL surface mountable on the adopter's existing huma router. |
|
ir
Package ir is the gateway's format-neutral schema intermediate representation.
|
Package ir is the gateway's format-neutral schema intermediate representation. |
|
perf
|
|
|
cmd/compare
command
compare — head-to-head perf comparison orchestrator.
|
compare — head-to-head perf comparison orchestrator. |
|
Package ui embeds the compiled SPA bundle (`dist/`) as an embed.FS so the gateway binary can serve the admin UI without any external static directory.
|
Package ui embeds the compiled SPA bundle (`dist/`) as an embed.FS so the gateway binary can serve the admin UI without any external static directory. |
Click to show internal directories.
Click to hide internal directories.
