Documentation
¶
Overview ¶
Package app is the public composition root for led. It wires config, the database, auth, the core API, the short-link redirector and the embedded dashboard into one HTTP server — and lets external (Pro) modules extend it through the plugin package without forking.
This is the importable seam of the Core-as-Library split: the open-core binary (cmd in this repo) calls New().Run() with no plugins; the private led-core consumer calls Use() for each Pro plugin before Run().
AutoMigrate timing: New() opens the database but does NOT migrate. Run() collects core models plus every registered plugin's Models() and migrates them together, exactly once, before any request is served.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App holds the wired core dependencies and any registered plugins.
func New ¶
New loads configuration and opens the database (without migrating). Call Use to register plugins, then Run.