v1

package
v0.0.0-...-d771ed5 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupHandler

func BackupHandler(db *sql.DB, dbPath string, logger *slog.Logger) http.HandlerFunc

BackupHandler returns an http.HandlerFunc that streams a consistent SQLite backup as a downloadable file using VACUUM INTO.

func RegisterActivityRoutes

func RegisterActivityRoutes(humaAPI huma.API, svc *activity.Service)

RegisterActivityRoutes registers the /api/v1/activity endpoints.

func RegisterBlocklistRoutes

func RegisterBlocklistRoutes(api huma.API, svc *blocklist.Service)

RegisterBlocklistRoutes registers the blocklist management endpoints.

func RegisterCalendarRoutes

func RegisterCalendarRoutes(api huma.API, q db.Querier)

RegisterCalendarRoutes registers the calendar endpoint.

func RegisterDownloadClientRoutes

func RegisterDownloadClientRoutes(api huma.API, svc *downloader.Service)

RegisterDownloadClientRoutes registers all /api/v1/download-clients endpoints.

func RegisterEnvRoutes

func RegisterEnvRoutes(api huma.API)

RegisterEnvRoutes exposes the relevant env vars for this process so the Pulse dashboard can show what the operator configured. Secrets are redacted by substring match on the key.

func RegisterEpisodeFileRoutes

func RegisterEpisodeFileRoutes(api huma.API, svc *show.Service, mmSvc *mediamanagement.Service)

RegisterEpisodeFileRoutes registers file management endpoints for a series.

func RegisterFilesystemRoutes

func RegisterFilesystemRoutes(api huma.API)

RegisterFilesystemRoutes registers the server-side filesystem browsing endpoint.

func RegisterHaulHistoryRoutes

func RegisterHaulHistoryRoutes(api huma.API, q db.Querier, downloaderSvc *downloader.Service, importerSvc *importer.Service)

RegisterHaulHistoryRoutes wires the haul-history endpoints.

func RegisterHistoryRoutes

func RegisterHistoryRoutes(humaAPI huma.API, q db.Querier)

RegisterHistoryRoutes registers the global grab history endpoint and the per-series grab history endpoint.

func RegisterImportListRoutes

func RegisterImportListRoutes(api huma.API, svc *importlist.Service)

func RegisterImportRoutes

func RegisterImportRoutes(api huma.API, svc *sonarrimport.Service)

func RegisterIndexerRoutes

func RegisterIndexerRoutes(api huma.API, svc *indexer.Service)

RegisterIndexerRoutes registers all /api/v1/indexers endpoints.

func RegisterLibraryRoutes

func RegisterLibraryRoutes(api huma.API, librarySvc *library.Service)

RegisterLibraryRoutes registers all /api/v1/libraries endpoints.

func RegisterMediaManagementRoutes

func RegisterMediaManagementRoutes(api huma.API, svc *mediamanagement.Service)

RegisterMediaManagementRoutes registers /api/v1/media-management endpoints.

func RegisterMediaServerRoutes

func RegisterMediaServerRoutes(api huma.API, svc *mediaserver.Service)

RegisterMediaServerRoutes registers the /api/v1/media-servers endpoints.

func RegisterNotificationRoutes

func RegisterNotificationRoutes(api huma.API, svc *notification.Service)

RegisterNotificationRoutes registers the /api/v1/notifications endpoints.

func RegisterProviderRoutes

func RegisterProviderRoutes(api huma.API, r *provider.Resolver)

RegisterProviderRoutes wires the /api/v1/settings/providers/{name} endpoints onto the given Huma API.

func RegisterQualityDefinitionRoutes

func RegisterQualityDefinitionRoutes(api huma.API, svc *quality.DefinitionService)

RegisterQualityDefinitionRoutes registers /api/v1/quality-definitions endpoints.

func RegisterQualityProfileRoutes

func RegisterQualityProfileRoutes(api huma.API, qualitySvc *quality.Service)

RegisterQualityProfileRoutes registers all /api/v1/quality-profiles endpoints.

func RegisterQueueRoutes

func RegisterQueueRoutes(api huma.API, svc *queue.Service, bl *blocklist.Service)

RegisterQueueRoutes registers the /api/v1/queue endpoints.

func RegisterReleaseRoutes

func RegisterReleaseRoutes(api huma.API, indexerSvc *indexer.Service, showSvc *show.Service, downloaderSvc *downloader.Service, blocklistSvc *blocklist.Service, qualitySvc *quality.Service)

RegisterReleaseRoutes registers the release search and grab history endpoints. qualitySvc may be nil; when nil, the quality-profile gate is skipped and all releases are considered acceptable regardless of the series profile.

func RegisterRuntimeRoutes

func RegisterRuntimeRoutes(api huma.API, startTime time.Time)

RegisterRuntimeRoutes registers the Go-runtime stats endpoint.

func RegisterSeriesRoutes

func RegisterSeriesRoutes(api huma.API, showSvc *show.Service)

RegisterSeriesRoutes registers all /api/v1/series, /api/v1/episodes, and /api/v1/seasons endpoints.

func RegisterStatsRoutes

func RegisterStatsRoutes(humaAPI huma.API, svc *stats.Service)

RegisterStatsRoutes registers the /api/v1/stats/* endpoints.

func RegisterSystemRoutes

func RegisterSystemRoutes(api huma.API, startTime time.Time, dbType, dbPath, configFile, apiKey string, tmdbKeyConfigured, tmdbKeyIsDefault bool, logger *slog.Logger)

RegisterSystemRoutes registers the /api/v1/system/* endpoints.

func RegisterTaskRoutes

func RegisterTaskRoutes(api huma.API, sched *scheduler.Scheduler)

RegisterTaskRoutes registers the /api/v1/tasks endpoints.

func RegisterWantedRoutes

func RegisterWantedRoutes(api huma.API, q db.Querier)

RegisterWantedRoutes registers the wanted/missing and wanted/cutoff endpoints.

func RestoreHandler

func RestoreHandler(dbPath string, logger *slog.Logger) http.HandlerFunc

RestoreHandler returns an http.HandlerFunc that accepts a raw SQLite database upload and writes it to a staging path. The actual swap happens on next application startup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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