{"modulePath":"github.com/dombyte/pvmon","version":"v0.4.0","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/dombyte/pvmon/cmd","name":"main","synopsis":"Command pvmon polls PV devices and serves the dashboard.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/docs","name":"docs","synopsis":"Package docs embeds the API documentation: openapi.yaml and the Swagger UI build (docs/dist, built by `make docs`).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/frontend","name":"frontend","synopsis":"Package frontend embeds the built web UI (frontend/dist, built by `make assets`) into the binary.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/app","name":"app","synopsis":"Package app is the composition root: it loads the configuration, maps it onto the Settings and Specs of every package and builds all components (Create* factories).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/auth","name":"auth","synopsis":"Package auth implements accounts, sessions, API tokens, the setup code, brute-force limits and the audit entries of these actions (spec 10).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/buildinfo","name":"buildinfo","synopsis":"Package buildinfo carries the version information set by the linker.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/collector","name":"collector","synopsis":"Package collector polls the devices of one connection, normalises their values, turns counters into energy deltas, nets grid energy and books everything into 15-minute buckets (spec 5, 6).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/collector/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/config","name":"config","synopsis":"Package config loads the layered configuration (defaults → DB → file → env), decodes it into typed sections and validates its structure.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/configstore","name":"configstore","synopsis":"Package configstore persists the UI configuration (spec 3): objects and settings with a revision (config_rev), history snapshots, audit entries with a diff, and encrypted secrets.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/configstore/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/database","name":"database","synopsis":"Package database opens the SQLite database, applies the embedded, versioned migrations (always after a verified backup) and makes verified online backups (spec 7.6).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/derive","name":"derive","synopsis":"Package derive turns 15-minute buckets into periods (day, month, year, total) and site quantities, caching closed periods in derived_cache (spec 5.1 step 8, 7.3).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/derive/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/eventbus","name":"eventbus","synopsis":"Package eventbus is the typed in-process event bus through which background components meet (AGENTS.md section 4).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/health","name":"health","synopsis":"Package health is the single supervisor: it starts restartable components, watches their state and heartbeat, restarts them within a budget and cancels the root context with ErrHealthFatal when that is no longer possible (spec 8.2).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/health/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/http/handler","name":"handler","synopsis":"Package handler holds the HTTP handlers; they contain no business logic and call services only.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/http/handler/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/http/middleware","name":"middleware","synopsis":"Package middleware holds HTTP middleware; handlers live in package handler.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/http/middleware/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/http/router","name":"router","synopsis":"Package router declares every HTTP route and its access level in one place.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/http/server","name":"server","synopsis":"Package server runs the HTTP server lifecycle.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/livecache","name":"livecache","synopsis":"Package livecache keeps the newest value per live key (\"\u003cmeter\u003e/\u003cchannel\u003e\") and publishes a change event for every new value.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/livecache/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/logging","name":"logging","synopsis":"Package logging builds the injected zerolog.Logger: JSON to stdout and, when a file is configured, additionally to a file rotated by timberjack.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/maintenance","name":"maintenance","synopsis":"Package maintenance holds the CLI jobs that run with the server stopped: the shared lock next to the database, dumps, backups, backfill, import and data correction (spec 13).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/maintenance/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/profile","name":"profile","synopsis":"Package profile holds the declarative device profiles (spec 4): schema, loader for built-in and local profiles, validation, decoder and status maps.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/report","name":"report","synopsis":"Package report is the pure energy report model (spec 12): complete days of the site quantities go in, sums, ratios, sections, patterns and key figures (with an optional comparison period) come out.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/report/csv","name":"csv","synopsis":"Package csv writes a report's buckets as CSV: one row per day, month or year with the site quantities and the derived columns (this app's estimates end in _est_kwh).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/report/pdf","name":"pdf","synopsis":"Package pdf renders a report as an A4 PDF (spec 12): a summary page with key figures, energy charts and where the energy came from and went, the sections the site has (battery, PV sources, loadpoints, load profile), patterns, comparison and data quality, a compact table and a last page on how the report is calculated.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/service","name":"service","synopsis":"Package service holds the read services behind the HTTP handlers.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/service/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/simulate","name":"simulate","synopsis":"Package simulate provides fake device sources for \"pvmon simulate\": a small, deterministic household model whose values are encoded through the real profiles, so the whole pipeline runs as with real devices (spec 13).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/site","name":"site","synopsis":"Package site builds the effective site model from configured connections, devices and meters plus their profiles: roles, categories, hierarchy, the series catalogue and the capabilities the UI is built from (spec 2, 3, 11).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/sitecalc","name":"sitecalc","synopsis":"Package sitecalc computes the live site quantities (spec 5.5) from the live cache: on a change of a meter value, debounced, and on a refresh tick so missing inputs remove the quantity.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/sitecalc/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/storage","name":"storage","synopsis":"Package storage is the sole owner of the SQLite database.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/storage/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/transport/http","name":"http","synopsis":"Package http is the HTTP(S) JSON transport: GET requests only, basic and digest authentication, no redirects to other hosts, per-request timeouts and backoff after failures (spec 4.4, 10).","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/transport/http/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/transport/modbus","name":"modbus","synopsis":"Package modbus is the Modbus TCP/RTU transport: one shared connection with a FIFO request queue per address, raw register reads (FC 03/04 only), error classification and reconnect with exponential backoff.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/transport/modbus/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/util","name":"util","synopsis":"Package util holds small dependency-free helpers shared by all packages: the injected Clock, dependency checks, the Slot container and numeric helpers.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/util/clocktest","name":"clocktest","synopsis":"Package clocktest provides a manually driven util.Clock for tests: time only moves when the test calls Advance or Set, so polling, backoff and debounce run without sleeps.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/util/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/ws","name":"ws","synopsis":"Package ws serves live values over WebSocket (spec 9.3): subscriptions per client, a per-client diff against what was sent, pushes coalesced into one frame per tick.","isRedistributable":true},{"path":"github.com/dombyte/pvmon/internal/ws/mocks","name":"mocks","synopsis":"","isRedistributable":true},{"path":"github.com/dombyte/pvmon/profiles","name":"profiles","synopsis":"Package profiles embeds the built-in device profiles into the binary (spec 4.5).","isRedistributable":true}],"total":50}}
