Documentation
¶
Overview ¶
Package transport is the umbrella for go-tool-base's extracted server-side transport stack. It has no exported symbols of its own; the functionality lives in the sub-packages:
- gitlab.com/phpboyscout/go/transport/http — the hardened HTTP server: health/liveness/readiness handlers, the secure server constructor, request authentication, security headers, and lifecycle glue.
- gitlab.com/phpboyscout/go/transport/grpc — the gRPC server: the secure server constructor, health service, RPC authentication, TLS credentials, local dialling, and lifecycle glue.
- gitlab.com/phpboyscout/go/transport/gateway — the grpc-gateway that exposes a gRPC service over REST/JSON.
The middleware these servers compose (logging, OpenTelemetry, circuit breaking, rate limiting) lives in gitlab.com/phpboyscout/go/transit and is consumed, not re-exported. TLS material comes from gitlab.com/phpboyscout/go/tls, authentication from gitlab.com/phpboyscout/go/authn, and service lifecycle from gitlab.com/phpboyscout/go/controls. The module is framework-free: it never imports go-tool-base or the CLI/config/TUI stack, a boundary enforced by a dependency-footprint test.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package gateway makes a grpc-gateway a first-class transport for generated REST handlers.
|
Package gateway makes a grpc-gateway a first-class transport for generated REST handlers. |
|
Package grpc provides a hardened gRPC server toolkit: a server bootstrap that integrates with the gitlab.com/phpboyscout/go/controls lifecycle and the standard gRPC health protocol (RegisterHealthService), request authentication (AuthInterceptor, from gitlab.com/phpboyscout/go/authn), TLS credential helpers (TLSServerCredentials, TLSClientCredentials) and a local dial helper (DialLocal).
|
Package grpc provides a hardened gRPC server toolkit: a server bootstrap that integrates with the gitlab.com/phpboyscout/go/controls lifecycle and the standard gRPC health protocol (RegisterHealthService), request authentication (AuthInterceptor, from gitlab.com/phpboyscout/go/authn), TLS credential helpers (TLSServerCredentials, TLSClientCredentials) and a local dial helper (DialLocal). |
|
Package http provides a hardened HTTP server toolkit.
|
Package http provides a hardened HTTP server toolkit. |
|
internal
|
|
|
logtest
Package logtest provides a minimal, stdlib-only slog capture handler for asserting on log output in tests.
|
Package logtest provides a minimal, stdlib-only slog capture handler for asserting on log output in tests. |
Click to show internal directories.
Click to hide internal directories.