internal/

directory
v1.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: Apache-2.0

Directories

Path Synopsis
cli
`nucleus generate module <name>` — the package-per-feature slice generator (ADR-022 §4).
`nucleus generate module <name>` — the package-per-feature slice generator (ADR-022 §4).
scaffold
Package scaffold renders the `nucleus new` starter project from a tree of embedded template files instead of inline Go string literals.
Package scaffold renders the `nucleus new` starter project from a tree of embedded template files instead of inline Go string literals.
Package configbind is the single place a merged koanf tree becomes a framework config struct.
Package configbind is the single place a merged koanf tree becomes a framework config struct.
Package dbclassify recognises a unique-constraint violation from MySQL, SQL Server, Oracle and SQLite WITHOUT importing any of them.
Package dbclassify recognises a unique-constraint violation from MySQL, SQL Server, Oracle and SQLite WITHOUT importing any of them.
Package dupfixture holds a model whose type NAME collides with one in the model package's tests: two packages each declaring a Product is the ordinary way two modules end up registering the same model name (NU-20).
Package dupfixture holds a model whose type NAME collides with one in the model package's tests: two packages each declaring a Product is the ordinary way two modules end up registering the same model name (NU-20).
Package errreport carries, in a request's context, the reporters that want the error behind a 500 the framework answers — and hands them that error.
Package errreport carries, in a request's context, the reporters that want the error behind a 500 the framework answers — and hands them that error.
fixtures
inprocess/dirqueue
Package dirqueue is the example in-process extension: a module that adds an outbox bridge written in Go, registered on the running application with no process in between.
Package dirqueue is the example in-process extension: a module that adds an outbox bridge written in Go, registered on the running application with no process in between.
plugins/nucleus-plugin-maildir command
Command nucleus-plugin-maildir is the example external plugin of the Nucleus plugin SDK: a mail provider that delivers each message into a Maildir — one file per message, written to tmp/ and renamed into new/, the way a local mail system delivers — where a mail client, a test or a person can read it.
Command nucleus-plugin-maildir is the example external plugin of the Nucleus plugin SDK: a mail provider that delivers each message into a Maildir — one file per message, written to tmp/ and renamed into new/, the way a local mail system delivers — where a mail client, a test or a person can read it.
plugins/nucleus-plugin-relay command
Command nucleus-plugin-relay is the example plugin for the outbox's plugin bridge: it serves the two capabilities an outbox bridge of type plugin sends.
Command nucleus-plugin-relay is the example plugin for the outbox's plugin bridge: it serves the two capabilities an outbox bridge of type plugin sends.
Package httpneg reads what a client asked for in its Accept header and carries the application's choice of error shape on the request context.
Package httpneg reads what a client asked for in its Accept header and carries the application's choice of error shape on the request context.
Package jobstelemetry holds the metric instruments every job provider records to.
Package jobstelemetry holds the metric instruments every job provider records to.
Package knownproviders is the catalog: every name `nucleus add` installs, `nucleus new --with` resolves and the runtime's refusals point at (ADR-034).
Package knownproviders is the catalog: every name `nucleus add` installs, `nucleus new --with` resolves and the runtime's refusals point at (ADR-034).
Package leakcheck fails a test binary that leaves goroutines running after its tests pass.
Package leakcheck fails a test binary that leaves goroutines running after its tests pass.
Package listenhook tells a caller inside this module the moment app.Run has bound its listener, carried on the context Run receives.
Package listenhook tells a caller inside this module the moment app.Run has bound its listener, carried on the context Run receives.
Package providerconfig binds the configuration subtree that belongs to a registered provider — a storage backend, a session store, an authentication backend — into the provider's own typed struct.
Package providerconfig binds the configuration subtree that belongs to a registered provider — a storage backend, a session store, an authentication backend — into the provider's own typed struct.
Package providerns answers one question for every configuration validator in the framework: does this key belong to the private subtree of a REGISTERED provider, rather than to app.Config's schema?
Package providerns answers one question for every configuration validator in the framework: does this key belong to the private subtree of a REGISTERED provider, rather than to app.Config's schema?
Package routedump is the wire format between a Nucleus application that prints its route table at boot (NUCLEUS_PRINT_ROUTES=1, read by pkg/nucleus.RunContext) and the `nucleus routes` command that runs the application to read it.
Package routedump is the wire format between a Nucleus application that prints its route table at boot (NUCLEUS_PRINT_ROUTES=1, read by pkg/nucleus.RunContext) and the `nucleus routes` command that runs the application to read it.
Package testredis gives the framework's tests a Redis server: miniredis, in a process of its own.
Package testredis gives the framework's tests a Redis server: miniredis, in a process of its own.
Package testsqlite links SQLite into the framework's own test binaries and registers its unique-violation classifier.
Package testsqlite links SQLite into the framework's own test binaries and registers its unique-violation classifier.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL