Documentation
¶
Overview ¶
Command led is a single-binary domain / short-link / email management service (link · email · domain). It serves an embedded React dashboard, a JSON API, and a short-link redirector from one process.
This is the open-core binary: it runs the app with no Pro plugins. The commercial build (private led-core module) reuses the same app package and registers additional plugins before Run — see the plugin package.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package app is the public composition root for led.
|
Package app is the public composition root for led. |
|
Package config loads runtime configuration from environment variables.
|
Package config loads runtime configuration from environment variables. |
|
internal
|
|
|
api
Package api implements led's JSON HTTP API.
|
Package api implements led's JSON HTTP API. |
|
auth
Package auth implements single-user session authentication using a signed cookie.
|
Package auth implements single-user session authentication using a signed cookie. |
|
crypto
Package crypto provides AES-GCM encryption for secrets at rest and HMAC signing for session cookies.
|
Package crypto provides AES-GCM encryption for secrets at rest and HMAC signing for session cookies. |
|
db
Package db opens the configured database (SQLite or Postgres) through GORM and runs migrations.
|
Package db opens the configured database (SQLite or Postgres) through GORM and runs migrations. |
|
dnsprovider
Package dnsprovider abstracts DNS record management across providers.
|
Package dnsprovider abstracts DNS record management across providers. |
|
geo
Package geo resolves a client IP into country/city (optional, via a MaxMind GeoLite2 mmdb) and parses a User-Agent into device/browser/os.
|
Package geo resolves a client IP into country/city (optional, via a MaxMind GeoLite2 mmdb) and parses a User-Agent into device/browser/os. |
|
mail
Package mail parses inbound MIME messages and sends outbound mail via SMTP.
|
Package mail parses inbound MIME messages and sends outbound mail via SMTP. |
|
models
Package models defines the GORM persistence schema for led.
|
Package models defines the GORM persistence schema for led. |
|
notify
Package notify delivers best-effort notifications about led events.
|
Package notify delivers best-effort notifications about led events. |
|
server
Package server wires the API, short-link redirector, and embedded SPA behind a single http.Handler.
|
Package server wires the API, short-link redirector, and embedded SPA behind a single http.Handler. |
|
shortlink
Package shortlink resolves slugs to targets, records click events asynchronously, and renders the password gate when a link is protected.
|
Package shortlink resolves slugs to targets, records click events asynchronously, and renders the password gate when a link is protected. |
|
Package plugin defines the contract a commercial (Pro) module implements to extend led without forking it.
|
Package plugin defines the contract a commercial (Pro) module implements to extend led without forking it. |
|
Package webembed embeds the built React dashboard into the binary.
|
Package webembed embeds the built React dashboard into the binary. |
Click to show internal directories.
Click to hide internal directories.