Directories
¶
| Path | Synopsis |
|---|---|
|
Package backoff computes retry delay ladders shared across services.
|
Package backoff computes retry delay ladders shared across services. |
|
Package cache provides a generic, thread-safe, two-tier TTL cache for validating opaque secrets (API keys, tokens) against a loaded set, using a caller-supplied match function so the package stays dependency-free.
|
Package cache provides a generic, thread-safe, two-tier TTL cache for validating opaque secrets (API keys, tokens) against a loaded set, using a caller-supplied match function so the package stays dependency-free. |
|
Package config provides a lightweight, type-safe configuration layer for serverless and HTTP services.
|
Package config provides a lightweight, type-safe configuration layer for serverless and HTTP services. |
|
Package constants provides shared, domain-agnostic HTTP constants — header names, content types, CORS values, and standardized error codes and messages — used by the foundation HTTP, Lambda, and response helpers.
|
Package constants provides shared, domain-agnostic HTTP constants — header names, content types, CORS values, and standardized error codes and messages — used by the foundation HTTP, Lambda, and response helpers. |
|
Package ctxutil provides small, domain-agnostic helpers for threading values through context.Context.
|
Package ctxutil provides small, domain-agnostic helpers for threading values through context.Context. |
|
Package db provides GORM database connection management for serverless and HTTP services.
|
Package db provides GORM database connection management for serverless and HTTP services. |
|
Package health provides health check services for database connections.
|
Package health provides health check services for database connections. |
|
Package httputil provides shared HTTP response helpers.
|
Package httputil provides shared HTTP response helpers. |
|
Package lambda provides a lightweight AWS API Gateway v2 ↔ net/http adapter.
|
Package lambda provides a lightweight AWS API Gateway v2 ↔ net/http adapter. |
|
Package middleware provides production-ready HTTP middleware for serverless Lambda functions and local HTTP servers.
|
Package middleware provides production-ready HTTP middleware for serverless Lambda functions and local HTTP servers. |
|
Package models provides core infrastructure for GORM-based domain models.
|
Package models provides core infrastructure for GORM-based domain models. |
|
Package observability centralizes log/metric/trace setup so every binary (local server, Lambda, daemon, snapshot tool, build tooling) configures slog the same way.
|
Package observability centralizes log/metric/trace setup so every binary (local server, Lambda, daemon, snapshot tool, build tooling) configures slog the same way. |
|
Package pagination provides cursor-based pagination utilities.
|
Package pagination provides cursor-based pagination utilities. |
|
Package recurrence computes next occurrences of weekly recurring event patterns expressed as JSON.
|
Package recurrence computes next occurrences of weekly recurring event patterns expressed as JSON. |
|
Package secrets provides a unified interface for retrieving secrets from various sources.
|
Package secrets provides a unified interface for retrieving secrets from various sources. |
|
Package testutil provides generic, domain-agnostic test helpers for services built on go-foundation: in-memory SQLite databases, ready-made test configurations, a programmable HTTP doer double, a log-recording slog handler, and a free-port helper.
|
Package testutil provides generic, domain-agnostic test helpers for services built on go-foundation: in-memory SQLite databases, ready-made test configurations, a programmable HTTP doer double, a log-recording slog handler, and a free-port helper. |
|
pgtest
Package pgtest provides a testcontainers-backed PostgreSQL harness for integration tests built on go-foundation.
|
Package pgtest provides a testcontainers-backed PostgreSQL harness for integration tests built on go-foundation. |
Click to show internal directories.
Click to hide internal directories.
