api

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: 43 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 NewRouter

func NewRouter(cfg RouterConfig) http.Handler

NewRouter builds and returns the application HTTP handler.

Types

type RouterConfig

type RouterConfig struct {
	Auth                   config.Secret
	AuthSettings           middleware.AuthSettings
	Logger                 *slog.Logger
	StartTime              time.Time
	DB                     *sql.DB
	DBType                 string
	DBPath                 string
	ConfigFile             string
	TMDBKeyConfigured      bool
	TMDBKeyIsDefault       bool
	LogSystem              *beaconlog.System
	DockerLogs             *beaconlog.DockerLogsReader
	Queries                db.Querier
	ShowService            *show.Service
	QualityService         *quality.Service
	LibraryService         *library.Service
	IndexerService         *indexer.Service
	DownloaderService      *downloader.Service
	NotificationService    *notification.Service
	MediaServerService     *mediaserver.Service
	BlocklistService       *blocklist.Service
	MediaManagementService *mediamanagement.Service
	QualityDefService      *quality.DefinitionService
	QueueService           *queue.Service
	ImporterService        *importer.Service
	ActivityService        *activity.Service
	StatsService           *stats.Service
	ImportListService      *importlist.Service
	SonarrImportService    *sonarrimport.Service
	ProviderResolver       *provider.Resolver
	ReleaseProfileService  *releaseprofile.Service
	WSHub                  *ws.Hub
	Scheduler              *scheduler.Scheduler
	HealthService          *health.Service
	RemotePathService      *remotepath.Service
	BackupService          *backup.Service
	RecycleBinService      *recyclebin.Service
	SeriesBulkService      *seriesbulk.Service
	UnmappedService        *unmapped.Service
	PulseSyncHandler       http.HandlerFunc
}

RouterConfig holds everything the router needs to function.

Directories

Path Synopsis
Package ws implements a WebSocket hub that bridges the internal event bus to connected browser clients.
Package ws implements a WebSocket hub that bridges the internal event bus to connected browser clients.

Jump to

Keyboard shortcuts

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