v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterActivityRoutes

func RegisterActivityRoutes(api huma.API, db *sql.DB)

RegisterActivityRoutes wires the activity-page endpoints onto the API. Reads from torrents + torrent_events; never mutates state.

func RegisterAdminCleanupHistoryRoutes

func RegisterAdminCleanupHistoryRoutes(api huma.API, registry *adminpkg.Registry)

RegisterAdminCleanupHistoryRoutes wires the cleanup_history endpoints.

func RegisterAdminDiagnosticsRoutes

func RegisterAdminDiagnosticsRoutes(api huma.API, registry *adminpkg.Registry)

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

func RegisterCategoryRoutes(api huma.API, svc *category.Service)

RegisterCategoryRoutes registers /api/v1/categories endpoints.

func RegisterHealthRoutes

func RegisterHealthRoutes(api huma.API, session *torrent.Session)

RegisterHealthRoutes registers health and Beacon integration endpoints.

func RegisterHistoryRoutes

func RegisterHistoryRoutes(api huma.API, session *torrent.Session)

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

func RegisterResearchRoutes(api huma.API, session *torrent.Session, integ *pulse.Integration)

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

func RegisterSettingsRoutes(api huma.API, db *sql.DB, session *torrent.Session)

RegisterSettingsRoutes registers the runtime settings API.

func RegisterStatsRoutes

func RegisterStatsRoutes(api huma.API, session *torrent.Session)

RegisterStatsRoutes registers the session statistics endpoint.

func RegisterTagRoutes

func RegisterTagRoutes(api huma.API, svc *tag.Service)

RegisterTagRoutes registers /api/v1/tags endpoints.

func RegisterTorrentControlRoutes

func RegisterTorrentControlRoutes(api huma.API, session *torrent.Session)

RegisterTorrentControlRoutes registers extended torrent control endpoints.

func RegisterTorrentRoutes

func RegisterTorrentRoutes(api huma.API, session *torrent.Session)

RegisterTorrentRoutes registers the /api/v1/torrents endpoints.

func RegisterUpdateRoutes

func RegisterUpdateRoutes(api huma.API)

RegisterUpdateRoutes registers GET /api/v1/system/updates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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