Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
app
command
|
|
|
cli
command
The console command runs application and module commands through Cobra.
|
The console command runs application and module commands through Cobra. |
|
labena
command
Labena creates independent applications from a versioned template.
|
Labena creates independent applications from a versioned template. |
|
labena/internal/scaffold
Package scaffold creates application source without starting application services.
|
Package scaffold creates application source without starting application services. |
|
scheduler
command
|
|
|
worker
command
|
|
|
examples
|
|
|
cache
command
Run with CACHE_DRIVER=memory go run ./examples/cache.
|
Run with CACHE_DRIVER=memory go run ./examples/cache. |
|
cli
command
A complete console application and module command in one file.
|
A complete console application and module command in one file. |
|
httpclient
command
Run with go run ./examples/httpclient.
|
Run with go run ./examples/httpclient. |
|
httpclient/catalog
Package catalog demonstrates a small REST integration built on httpclient.
|
Package catalog demonstrates a small REST integration built on httpclient. |
|
mail
command
Render Identity OTP and welcome mail views locally.
|
Render Identity OTP and welcome mail views locally. |
|
mail/delivery
Package delivery demonstrates queued mail using borrowed application clients.
|
Package delivery demonstrates queued mail using borrowed application clients. |
|
module/profile
Package profile demonstrates a business change with transactional notification intent.
|
Package profile demonstrates a business change with transactional notification intent. |
|
push
command
Run with PUSH_EXPO_ACCESS_TOKEN (if enabled in Expo) and PUSH_REGISTRATION.
|
Run with PUSH_EXPO_ACCESS_TOKEN (if enabled in Expo) and PUSH_REGISTRATION. |
|
social-login
command
This local-only example tests an installed-app Google OAuth client with the API.
|
This local-only example tests an installed-app Google OAuth client with the API. |
|
storage
command
Run from the repository root: APP_ENV_FILE= go run ./examples/storage
|
Run from the repository root: APP_ENV_FILE= go run ./examples/storage |
|
internal
|
|
|
app
Package app assembles business modules and platform capabilities and owns their execution lifetime.
|
Package app assembles business modules and platform capabilities and owns their execution lifetime. |
|
app/config
Package config loads and validates this application's typed settings.
|
Package config loads and validates this application's typed settings. |
|
modules/identity
Package identity constructs account operations and registers their transports.
|
Package identity constructs account operations and registers their transports. |
|
modules/identity/delivery/events
Package events reacts to Identity events using borrowed delivery clients.
|
Package events reacts to Identity events using borrowed delivery clients. |
|
modules/identity/delivery/http
Package http exposes authentication and self-service account, media and notification endpoints.
|
Package http exposes authentication and self-service account, media and notification endpoints. |
|
modules/identity/delivery/jobs
Package jobs handles Identity's native Asynq tasks.
|
Package jobs handles Identity's native Asynq tasks. |
|
modules/identity/domain
Package domain defines Identity policies and business failures without transport dependencies.
|
Package domain defines Identity policies and business failures without transport dependencies. |
|
modules/identity/integrations
Package integrations verifies external identity credentials without owning accounts.
|
Package integrations verifies external identity credentials without owning accounts. |
|
modules/identity/jobs
Package jobs defines Identity's native Asynq tasks and their serializable inputs.
|
Package jobs defines Identity's native Asynq tasks and their serializable inputs. |
|
modules/identity/mailviews
Package mailviews defines Identity email content for the default branded layout.
|
Package mailviews defines Identity email content for the default branded layout. |
|
modules/identity/migrations
Package migrations embeds the SQL owned by identity.
|
Package migrations embeds the SQL owned by identity. |
|
modules/identity/notifications
Package notifications defines Identity's named notifications and channel content.
|
Package notifications defines Identity's named notifications and channel content. |
|
modules/identity/repository
Package repository owns Identity persistence using PostgreSQL and the application pool.
|
Package repository owns Identity persistence using PostgreSQL and the application pool. |
|
modules/identity/service
Package service owns Identity account and authentication operations.
|
Package service owns Identity account and authentication operations. |
|
modules/shared/enums
Package enums defines shared application enum types, grouped by business concept.
|
Package enums defines shared application enum types, grouped by business concept. |
|
modules/shared/events
Package events defines published business events and their occurrence metadata.
|
Package events defines published business events and their occurrence metadata. |
|
modules/shared/migrations
Package migrations embeds application-wide SQL migrations.
|
Package migrations embeds application-wide SQL migrations. |
|
platform/adminhttp
Package adminhttp protects browser-based operational endpoints independently of business authentication and CORS settings.
|
Package adminhttp protects browser-based operational endpoints independently of business authentication and CORS settings. |
|
platform/api
Package api assembles Huma on Go's HTTP server with shared request policies.
|
Package api assembles Huma on Go's HTTP server with shared request policies. |
|
platform/api/response
Package response constructs typed Huma outputs and safe HTTP problem details.
|
Package response constructs typed Huma outputs and safe HTTP problem details. |
|
platform/auth
Package auth defines authenticated identity without tokens or transport dependencies.
|
Package auth defines authenticated identity without tokens or transport dependencies. |
|
platform/cli
Package cli assembles module commands into a Cobra command tree.
|
Package cli assembles module commands into a Cobra command tree. |
|
platform/dependencies
Package dependencies defines the resources and registration targets shared by application assembly and business modules.
|
Package dependencies defines the resources and registration targets shared by application assembly and business modules. |
|
platform/internal/reference
Package reference defines the shared syntax of platform model references.
|
Package reference defines the shared syntax of platform model references. |
|
platform/lifecycle
Package lifecycle supervises process readiness, ordered drain and resource ownership.
|
Package lifecycle supervises process readiness, ordered drain and resource ownership. |
|
platform/logviewer
Package logviewer serves a protected, bounded local view of application logs.
|
Package logviewer serves a protected, bounded local view of application logs. |
|
platform/mail
Package mail sends email immediately or through an optional Asynq queue.
|
Package mail sends email immediately or through an optional Asynq queue. |
|
platform/mail/integration
Package integration registers the mail capability with application transports.
|
Package integration registers the mail capability with application transports. |
|
platform/media
Package media manages public and private polymorphic assets using database metadata and borrowed blob disks.
|
Package media manages public and private polymorphic assets using database metadata and borrowed blob disks. |
|
platform/media/integration
Package integration connects media to the application's transports and migrations.
|
Package integration connects media to the application's transports and migrations. |
|
platform/media/migrations
Package migrations embeds the SQL owned by media.
|
Package migrations embeds the SQL owned by media. |
|
platform/notification
Package notification sends channel-specific messages and stores polymorphic database notifications.
|
Package notification sends channel-specific messages and stores polymorphic database notifications. |
|
platform/notification/integration
Package integration connects notifications to the application's transports and migrations.
|
Package integration connects notifications to the application's transports and migrations. |
|
platform/notification/migrations
Package migrations embeds the SQL owned by the notification package.
|
Package migrations embeds the SQL owned by the notification package. |
|
platform/seeders
Package seeders registers named seed operations for explicit console execution.
|
Package seeders registers named seed operations for explicit console execution. |
|
platform/testdb
Package testdb creates isolated databases for integration tests.
|
Package testdb creates isolated databases for integration tests. |
|
pkg
|
|
|
apperror
Package apperror describes safe application failures without transport dependencies.
|
Package apperror describes safe application failures without transport dependencies. |
|
asynqx
Package asynqx defines application integration contracts for Asynq.
|
Package asynqx defines application integration contracts for Asynq. |
|
asynqx/middleware
Package middleware composes application policies around native Asynq enqueue calls.
|
Package middleware composes application policies around native Asynq enqueue calls. |
|
cache
Package cache defines an optional cache with raw bytes and JSON convenience operations.
|
Package cache defines an optional cache with raw bytes and JSON convenience operations. |
|
cache/database
Package database caches bytes in PostgreSQL or MySQL through a caller-owned Bun DB.
|
Package database caches bytes in PostgreSQL or MySQL through a caller-owned Bun DB. |
|
cache/memory
Package memory provides a process-local byte cache with synchronous writes.
|
Package memory provides a process-local byte cache with synchronous writes. |
|
cache/migrations
Package migrations provides SQL templates for opt-in application migrations.
|
Package migrations provides SQL templates for opt-in application migrations. |
|
cache/redis
Package redis caches bytes using native Redis expiration.
|
Package redis caches bytes using native Redis expiration. |
|
database
Package database configures SQL pools, Bun dialects, and transaction scopes.
|
Package database configures SQL pools, Bun dialects, and transaction scopes. |
|
database/migrate
Package migrate combines registered SQL sources and runs Goose explicitly.
|
Package migrate combines registered SQL sources and runs Goose explicitly. |
|
hasher
Package hasher provides bounded bcrypt hashing, independent of account policy.
|
Package hasher provides bounded bcrypt hashing, independent of account policy. |
|
httpclient
Package httpclient sends declarative, tagged requests through net/http.
|
Package httpclient sends declarative, tagged requests through net/http. |
|
httpserver
Package httpserver runs a standard HTTP handler with explicit startup and graceful shutdown.
|
Package httpserver runs a standard HTTP handler with explicit startup and graceful shutdown. |
|
logging
Package logging provides execution-scoped structured logging.
|
Package logging provides execution-scoped structured logging. |
|
mailview
Package mailview renders branded transactional emails independently of delivery.
|
Package mailview renders branded transactional emails independently of delivery. |
|
mapper
Package mapper transforms values and collections with explicit mapping functions.
|
Package mapper transforms values and collections with explicit mapping functions. |
|
metrics
Package metrics owns an isolated OpenTelemetry meter provider and Prometheus scrape handler.
|
Package metrics owns an isolated OpenTelemetry meter provider and Prometheus scrape handler. |
|
otp
Package otp generates decimal codes and keyed proof digests.
|
Package otp generates decimal codes and keyed proof digests. |
|
push
Package push sends provider messages without a database, queue or application bootstrap.
|
Package push sends provider messages without a database, queue or application bootstrap. |
|
ratelimit
Package ratelimit provides transport-independent admission limits.
|
Package ratelimit provides transport-independent admission limits. |
|
redis
Package redis constructs Redis clients.
|
Package redis constructs Redis clients. |
|
storage
Package storage constructs Go CDK blob buckets.
|
Package storage constructs Go CDK blob buckets. |
|
token
Package token issues and validates UUID-based session access tokens using golang-jwt.
|
Package token issues and validates UUID-based session access tokens using golang-jwt. |
|
tracing
Package tracing constructs an explicitly owned OpenTelemetry provider.
|
Package tracing constructs an explicitly owned OpenTelemetry provider. |
Click to show internal directories.
Click to hide internal directories.