internal/

directory
v0.0.0-...-676fa8b Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT

Directories

Path Synopsis
Package auth implements password hashing, sessions, CSRF, and middleware.
Package auth implements password hashing, sessions, CSRF, and middleware.
Package cli implements the cobra command tree for the pennywise binary.
Package cli implements the cobra command tree for the pennywise binary.
Package config loads runtime configuration from environment variables.
Package config loads runtime configuration from environment variables.
db
Package db wires up the SQLite connection and runs migrations.
Package db wires up the SQLite connection and runs migrations.
Package fuzzy provides the small string-matching helpers Pennywise uses to reconcile LLM-suggested category and ledger names against the user's actual records.
Package fuzzy provides the small string-matching helpers Pennywise uses to reconcile LLM-suggested category and ledger names against the user's actual records.
Package handlers contains the HTTP handlers grouped by feature.
Package handlers contains the HTTP handlers grouped by feature.
Package llm wraps the four supported text-completion providers behind a single Provider interface and routes every call through Engine, which timeouts, logs, and reports back to the rest of the codebase.
Package llm wraps the four supported text-completion providers behind a single Provider interface and routes every call through Engine, which timeouts, logs, and reports back to the rest of the codebase.
Package models holds domain types and helpers that aren't database rows.
Package models holds domain types and helpers that aren't database rows.
Package server wires the HTTP router, middleware, and lifecycle.
Package server wires the HTTP router, middleware, and lifecycle.
Package setupseed contains the first-run owner+categories seed logic shared by the web /setup handler and the `pennywise init` CLI command.
Package setupseed contains the first-run owner+categories seed logic shared by the web /setup handler and the `pennywise init` CLI command.
Package static embeds the CSS, JS, and image assets into the binary.
Package static embeds the CSS, JS, and image assets into the binary.
Package telegram drives the Telegram bot: long polling, message dispatch, inline-keyboard callbacks, and the supervisor that starts/stops the bot based on llm_config and telegram_config.
Package telegram drives the Telegram bot: long polling, message dispatch, inline-keyboard callbacks, and the supervisor that starts/stops the bot based on llm_config and telegram_config.
Package templates parses and executes the embedded HTML templates.
Package templates parses and executes the embedded HTML templates.
Package testutil provides shared test helpers: ephemeral SQLite databases with migrations applied, a MockProvider for the LLM interface, and a FakeTelegram httptest server that captures bot API calls.
Package testutil provides shared test helpers: ephemeral SQLite databases with migrations applied, a MockProvider for the LLM interface, and a FakeTelegram httptest server that captures bot API calls.

Jump to

Keyboard shortcuts

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