Directories
¶
| Path | Synopsis |
|---|---|
|
Package app provides the top-level orchestrator that ties every lifecycle.Runner and lifecycle.Resource registered by a service into a single managed lifecycle: signal-aware startup, errgroup-based run, and two-phase LIFO shutdown with a bounded timeout.
|
Package app provides the top-level orchestrator that ties every lifecycle.Runner and lifecycle.Resource registered by a service into a single managed lifecycle: signal-aware startup, errgroup-based run, and two-phase LIFO shutdown with a bounded timeout. |
|
Package di provides a generic, lock-free configuration loader and a thin Container wrapper for the two-step bootstrap pattern used by services built on core.
|
Package di provides a generic, lock-free configuration loader and a thin Container wrapper for the two-step bootstrap pattern used by services built on core. |
|
Package grpc provides an opinionated gRPC server wrapper that implements lifecycle.Runner.
|
Package grpc provides an opinionated gRPC server wrapper that implements lifecycle.Runner. |
|
Package http2 provides an opinionated HTTP/2 server wrapper that implements lifecycle.Runner.
|
Package http2 provides an opinionated HTTP/2 server wrapper that implements lifecycle.Runner. |
|
Package jwt provides a small framework for issuing and parsing JWT tokens with a generic claims payload, plus signer/verifier interfaces that allow swapping the signing algorithm without changing call sites.
|
Package jwt provides a small framework for issuing and parsing JWT tokens with a generic claims payload, plus signer/verifier interfaces that allow swapping the signing algorithm without changing call sites. |
|
hs256
Package hs256 implements jwt.Signer and jwt.Verifier using the HS256 HMAC-SHA256 signing algorithm.
|
Package hs256 implements jwt.Signer and jwt.Verifier using the HS256 HMAC-SHA256 signing algorithm. |
|
Package kafka wraps github.com/twmb/franz-go (kgo) with the lifecycle contract used across core: typed Configs, functional Options, Shutdown and Healthcheck methods, and an opt-in OpenTelemetry instrumentation pipeline via the kotel plugin.
|
Package kafka wraps github.com/twmb/franz-go (kgo) with the lifecycle contract used across core: typed Configs, functional Options, Shutdown and Healthcheck methods, and an opt-in OpenTelemetry instrumentation pipeline via the kotel plugin. |
|
Package lifecycle defines the three core interfaces that every component registered with app.App must implement in some combination: Resource for stateful holders of connections or goroutines, Runner for components whose primary contract is long-running background work, and Healthchecker for readiness reporting.
|
Package lifecycle defines the three core interfaces that every component registered with app.App must implement in some combination: Resource for stateful holders of connections or goroutines, Runner for components whose primary contract is long-running background work, and Healthchecker for readiness reporting. |
|
Package nats wraps github.com/nats-io/nats.go for Core NATS and NATS JetStream messaging with the lifecycle contract used across core: typed Config, functional Options, Shutdown(ctx), and Run(ctx).
|
Package nats wraps github.com/nats-io/nats.go for Core NATS and NATS JetStream messaging with the lifecycle contract used across core: typed Config, functional Options, Shutdown(ctx), and Run(ctx). |
|
Package otel bootstraps the OpenTelemetry SDK for traces, metrics, and logs over OTLP/HTTP.
|
Package otel bootstraps the OpenTelemetry SDK for traces, metrics, and logs over OTLP/HTTP. |
|
Package rabbitmq wraps github.com/furdarius/rabbitroutine with the lifecycle contract used across core: typed Config, functional Options, Shutdown methods, and explicit Resource/Runner roles.
|
Package rabbitmq wraps github.com/furdarius/rabbitroutine with the lifecycle contract used across core: typed Config, functional Options, Shutdown methods, and explicit Resource/Runner roles. |
|
Package redis wraps github.com/redis/go-redis/v9 with the lifecycle contract used across core: a typed Config, functional Options, and Shutdown / Healthcheck methods so a Client can be registered with app.App.
|
Package redis wraps github.com/redis/go-redis/v9 with the lifecycle contract used across core: a typed Config, functional Options, and Shutdown / Healthcheck methods so a Client can be registered with app.App. |
|
Package sql wraps github.com/jmoiron/sqlx with the lifecycle contract used across core: typed Config, functional Options, Shutdown / Healthcheck, and an opt-in OpenTelemetry instrumentation pipeline.
|
Package sql wraps github.com/jmoiron/sqlx with the lifecycle contract used across core: typed Config, functional Options, Shutdown / Healthcheck, and an opt-in OpenTelemetry instrumentation pipeline. |
|
postgres
Package postgres provides a typed Config for PostgreSQL connections that produces a DSN string consumable by core/sql.New.
|
Package postgres provides a typed Config for PostgreSQL connections that produces a DSN string consumable by core/sql.New. |
Click to show internal directories.
Click to hide internal directories.