Documentation
¶
Overview ¶
Package consoleapp is the importable command layer of the bintrail-console binary — the console sibling of the cliapp seam. cmd/bintrail-console is a thin main() over it; embedding distributions build their own console binary the same way and may install ext seams (e.g. ext.SetConsoleAuth for an external login flow) from main() before calling Main. The console server reads those seams at construction time, so installs after Main returns are never picked up.
The console is the MCP server with a web face: browse indexed row events with full before/after diffs, generate recovery (undo) SQL, and — when baselines are configured — run point-in-time reconstruct, all from a browser. The console NEVER executes SQL; recover produces a script you review and apply.
bintrail-console serve --index-dsn "user:pass@tcp(127.0.0.1:3306)/binlog_index"
Configuration mirrors the core CLI: a .bintrail.env (or ~/.config/bintrail/config.env) file is loaded on startup and the BINTRAIL_INDEX_DSN / BINTRAIL_CONSOLE_* env vars are honored with flag > env > default precedence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.