Documentation
¶
Index ¶
- func RegisterActivityRoutes(api huma.API, db *sql.DB)
- func RegisterAdminCleanupHistoryRoutes(api huma.API, registry *adminpkg.Registry)
- func RegisterAdminDiagnosticsRoutes(api huma.API, registry *adminpkg.Registry)
- func RegisterCategoryRoutes(api huma.API, svc *category.Service)
- func RegisterHealthRoutes(api huma.API, session *torrent.Session)
- func RegisterHistoryRoutes(api huma.API, session *torrent.Session)
- func RegisterPeerRoutes(api huma.API, integ *pulse.Integration)
- func RegisterResearchRoutes(api huma.API, session *torrent.Session, integ *pulse.Integration)
- func RegisterSettingsRoutes(api huma.API, db *sql.DB, session *torrent.Session)
- func RegisterStatsRoutes(api huma.API, session *torrent.Session)
- func RegisterTagRoutes(api huma.API, svc *tag.Service)
- func RegisterTorrentControlRoutes(api huma.API, session *torrent.Session)
- func RegisterTorrentRoutes(api huma.API, session *torrent.Session)
- func RegisterUpdateRoutes(api huma.API)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterActivityRoutes ¶
RegisterActivityRoutes wires the activity-page endpoints onto the API. Reads from torrents + torrent_events; never mutates state.
func RegisterAdminCleanupHistoryRoutes ¶
RegisterAdminCleanupHistoryRoutes wires the cleanup_history endpoints.
func RegisterAdminDiagnosticsRoutes ¶
RegisterAdminDiagnosticsRoutes wires the diagnostics endpoints. Caller is responsible for only invoking this when the flag is on — the routes are unconditionally registered once this is called.
func RegisterCategoryRoutes ¶
RegisterCategoryRoutes registers /api/v1/categories endpoints.
func RegisterHealthRoutes ¶
RegisterHealthRoutes registers health and Beacon integration endpoints.
func RegisterHistoryRoutes ¶
RegisterHistoryRoutes wires the lookup endpoints onto the API. Mounts alongside the live torrent routes; both are admin-key gated by the surrounding middleware.
func RegisterPeerRoutes ¶
func RegisterPeerRoutes(api huma.API, integ *pulse.Integration)
RegisterPeerRoutes wires GET /api/v1/peers. The pulse integration is optional; when nil the endpoint returns an empty map instead of 500ing — the frontend already handles that case.
func RegisterResearchRoutes ¶
RegisterResearchRoutes wires POST /api/v1/torrents/{hash}/research. Requires both the torrent session (to look up requester) and the pulse integration (for sibling discovery + auth). When either is missing, the endpoint returns a meaningful error rather than 500ing.
func RegisterSettingsRoutes ¶
RegisterSettingsRoutes registers the runtime settings API.
func RegisterStatsRoutes ¶
RegisterStatsRoutes registers the session statistics endpoint.
func RegisterTagRoutes ¶
RegisterTagRoutes registers /api/v1/tags endpoints.
func RegisterTorrentControlRoutes ¶
RegisterTorrentControlRoutes registers extended torrent control endpoints.
func RegisterTorrentRoutes ¶
RegisterTorrentRoutes registers the /api/v1/torrents endpoints.
func RegisterUpdateRoutes ¶
RegisterUpdateRoutes registers GET /api/v1/system/updates.
Types ¶
This section is empty.