Directories
¶
| Path | Synopsis |
|---|---|
|
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. |
|
internal
|
|
|
auth
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. |
|
cache
Package cache is a pluggable key/value cache abstraction.
|
Package cache is a pluggable key/value cache abstraction. |
|
cache/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. |
|
config
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). |
|
errors
Package errors is Gortexa's central error model.
|
Package errors is Gortexa's central error model. |
|
health
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. |
|
httpcompat
Package httpcompat builds the grpc-gateway HTTP/JSON layer: a ServeMux whose error handler funnels through internal/errors (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 internal/errors (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. |
|
interceptor
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. |
|
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). |
|
mcp
Package mcp turns Gortexa's proto contract into AI-agent tools.
|
Package mcp turns Gortexa's proto contract into AI-agent tools. |
|
mq
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): |
|
observability
Package observability wires Gortexa's logging, tracing and metrics.
|
Package observability wires Gortexa's logging, tracing and metrics. |
|
storage
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.