Directories
¶
| Path | Synopsis |
|---|---|
|
Package apperr is Gortexa's central error model.
|
Package apperr is Gortexa's central error model. |
|
Package auth implements HS256 JWT verification and signing plus context helpers for propagating verified claims.
|
Package auth implements HS256 JWT verification and signing plus context helpers for propagating verified claims. |
|
Package cache is a pluggable key/value cache abstraction.
|
Package cache is a pluggable key/value cache abstraction. |
|
Package client provides outbound gRPC and HTTP client constructors with OTel instrumentation wired in: dialing another service from a Gortexa app (or any consumer) gets trace propagation without per-call setup.
|
Package client provides outbound gRPC and HTTP client constructors with OTel instrumentation wired in: dialing another service from a Gortexa app (or any consumer) gets trace propagation without per-call setup. |
|
cmd
|
|
|
gortexa
command
Command gortexa is the Gortexa developer CLI.
|
Command gortexa is the Gortexa developer CLI. |
|
gortexa/internal/cli
Package cli implements the gortexa developer CLI: scaffold projects, generate APIs from proto, regenerate code, and manage the dev toolchain and AI skills.
|
Package cli implements the gortexa developer CLI: scaffold projects, generate APIs from proto, regenerate code, and manage the dev toolchain and AI skills. |
|
server
command
Command server runs the Gortexa sample service: one h2c port serving gRPC, HTTP/JSON (grpc-gateway) and MCP for the resource.v1.ResourceService.
|
Command server runs the Gortexa sample service: one h2c port serving gRPC, HTTP/JSON (grpc-gateway) and MCP for the resource.v1.ResourceService. |
|
Package config builds Gortexa's configuration from layered sources with a fixed precedence: built-in defaults < YAML file < .env file < process environment (GORTEXA_ prefix, "__" for nesting).
|
Package config builds Gortexa's configuration from layered sources with a fixed precedence: built-in defaults < YAML file < .env file < process environment (GORTEXA_ prefix, "__" for nesting). |
|
gen
|
|
|
resource/v1
Package resourcev1 is a reverse proxy.
|
Package resourcev1 is a reverse proxy. |
|
Package health provides a concurrency-safe three-state health registry (Healthy / Degraded / Unhealthy) and a bridge to the standard gRPC health protocol.
|
Package health provides a concurrency-safe three-state health registry (Healthy / Degraded / Unhealthy) and a bridge to the standard gRPC health protocol. |
|
Package httpcompat builds the grpc-gateway HTTP/JSON layer: a ServeMux whose error handler funnels through apperr (so HTTP, gRPC and MCP all map errors identically and Internal never leaks), a protojson marshaler, and an incoming header matcher that forwards Authorization to the gRPC metadata key the auth interceptor reads — so HTTP and gRPC share one auth path.
|
Package httpcompat builds the grpc-gateway HTTP/JSON layer: a ServeMux whose error handler funnels through apperr (so HTTP, gRPC and MCP all map errors identically and Internal never leaks), a protojson marshaler, and an incoming header matcher that forwards Authorization to the gRPC metadata key the auth interceptor reads — so HTTP and gRPC share one auth path. |
|
Package interceptor provides Gortexa's gRPC server interceptors and the fixed-order chain that wires them.
|
Package interceptor provides Gortexa's gRPC server interceptors and the fixed-order chain that wires them. |
|
internal
|
|
|
logic
Package logic holds Gortexa's sample business logic: an in-memory ResourceService used to exercise the framework end-to-end (gRPC, gateway, MCP).
|
Package logic holds Gortexa's sample business logic: an in-memory ResourceService used to exercise the framework end-to-end (gRPC, gateway, MCP). |
|
resp
Package resp is a minimal, dependency-free RESP2 Redis client — just the GET/SET/DEL/PING surface the cache needs, plus a bounded connection pool.
|
Package resp is a minimal, dependency-free RESP2 Redis client — just the GET/SET/DEL/PING surface the cache needs, plus a bounded connection pool. |
|
Package kernel is Gortexa's composition root: App owns the single h2c listener that multiplexes gRPC, HTTP/JSON (grpc-gateway) and MCP by Content-Type/path, the gRPC server with the interceptor chain, the health registry, an in-process loopback for MCP dispatch, and graceful shutdown.
|
Package kernel is Gortexa's composition root: App owns the single h2c listener that multiplexes gRPC, HTTP/JSON (grpc-gateway) and MCP by Content-Type/path, the gRPC server with the interceptor chain, the health registry, an in-process loopback for MCP dispatch, and graceful shutdown. |
|
Package mcp turns Gortexa's proto contract into AI-agent tools.
|
Package mcp turns Gortexa's proto contract into AI-agent tools. |
|
Package mq is a pluggable publish/subscribe abstraction backed by NATS, with two drivers (both tested against an embedded server):
|
Package mq is a pluggable publish/subscribe abstraction backed by NATS, with two drivers (both tested against an embedded server): |
|
Package observability wires Gortexa's logging, tracing and metrics.
|
Package observability wires Gortexa's logging, tracing and metrics. |
|
Package storage builds a PgBouncer-safe pgx connection pool and a query tracer that emits OTel DB spans.
|
Package storage builds a PgBouncer-safe pgx connection pool and a query tracer that emits OTel DB spans. |
|
Package testutil provides in-process test helpers: a bufconn gRPC server wired with the full interceptor chain, golden-file comparison, and goroutine leak assertions.
|
Package testutil provides in-process test helpers: a bufconn gRPC server wired with the full interceptor chain, golden-file comparison, and goroutine leak assertions. |
Click to show internal directories.
Click to hide internal directories.