Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
Package apidoc provides an HTTP handler for serving OpenAPI documentation.
|
Package apidoc provides an HTTP handler for serving OpenAPI documentation. |
|
Package cache provides a key-value Cache abstraction with per-entry expiration, plus implementations for common scenarios.
|
Package cache provides a key-value Cache abstraction with per-entry expiration, plus implementations for common scenarios. |
|
db
module
|
|
|
Package env provides helpers for reading typed values from environment variables.
|
Package env provides helpers for reading typed values from environment variables. |
|
Package errs provides a structured, transport-agnostic error type for domain and application layers.
|
Package errs provides a structured, transport-agnostic error type for domain and application layers. |
|
Package events provides a synchronous, in-process event bus for decoupled communication between components.
|
Package events provides a synchronous, in-process event bus for decoupled communication between components. |
|
Package httpapi provides helpers for building JSON HTTP APIs.
|
Package httpapi provides helpers for building JSON HTTP APIs. |
|
httpapitest
Package httpapitest provides test helpers for the httpapi package.
|
Package httpapitest provides test helpers for the httpapi package. |
|
Package httpserver provides a Server that wraps net/http.Server with sane defaults and graceful shutdown support.
|
Package httpserver provides a Server that wraps net/http.Server with sane defaults and graceful shutdown support. |
|
Package logging provides a structured logger built on log/slog with support for OpenTelemetry trace/span injection, runtime level control, and a middleware chain for application-specific attribute injection.
|
Package logging provides a structured logger built on log/slog with support for OpenTelemetry trace/span injection, runtime level control, and a middleware chain for application-specific attribute injection. |
|
logtest
Package logtest provides test helpers for the log package.
|
Package logtest provides test helpers for the log package. |
|
Package mailer provides a Mailer abstraction for sending email, plus implementations for common scenarios.
|
Package mailer provides a Mailer abstraction for sending email, plus implementations for common scenarios. |
|
Package nullable provides a generic Value type that represents a value that may or may not be present β like sql.NullString but for any type T.
|
Package nullable provides a generic Value type that represents a value that may or may not be present β like sql.NullString but for any type T. |
|
Package openapitest provides utilities for validating HTTP requests and responses against an OpenAPI spec in tests.
|
Package openapitest provides utilities for validating HTTP requests and responses against an OpenAPI spec in tests. |
|
Package pagination provides types and helpers for offset-based and cursor-based pagination.
|
Package pagination provides types and helpers for offset-based and cursor-based pagination. |
|
Package ptr provides generic helper functions for working with pointer values.
|
Package ptr provides generic helper functions for working with pointer values. |
|
Package sorting provides types for validated ORDER BY clauses in repository queries.
|
Package sorting provides types for validated ORDER BY clauses in repository queries. |
|
Package spa provides an http.Handler that serves single-page applications.
|
Package spa provides an http.Handler that serves single-page applications. |
|
Package timeutil provides utilities for working with time.
|
Package timeutil provides utilities for working with time. |
|
tracing
module
|
|
|
Package uow defines the Unit of Work interfaces for managing cross-repository transactions without exposing database implementation details to the service layer.
|
Package uow defines the Unit of Work interfaces for managing cross-repository transactions without exposing database implementation details to the service layer. |
|
Package validator provides a lightweight, composable field validator.
|
Package validator provides a lightweight, composable field validator. |
Click to show internal directories.
Click to hide internal directories.