api

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: GPL-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Config                           *config.AppConfig
	Version                          string
	AuthService                      *auth.Service
	SessionManager                   *scs.SessionManager
	InstanceStore                    *models.InstanceStore
	InstanceReannounce               *models.InstanceReannounceStore
	ReannounceCache                  *reannounce.SettingsCache
	ReannounceService                *reannounce.Service
	ClientAPIKeyStore                *models.ClientAPIKeyStore
	ExternalProgramStore             *models.ExternalProgramStore
	ClientPool                       *qbittorrent.ClientPool
	SyncManager                      *qbittorrent.SyncManager
	WebHandler                       *web.Handler
	LicenseService                   *license.Service
	UpdateService                    *update.Service
	TrackerIconService               *trackericons.Service
	BackupService                    *backups.Service
	FilesManager                     *filesmanager.Service
	CrossSeedService                 *crossseed.Service
	JackettService                   *jackett.Service
	TorznabIndexerStore              *models.TorznabIndexerStore
	AutomationStore                  *models.AutomationStore
	AutomationActivityStore          *models.AutomationActivityStore
	AutomationService                *automations.Service
	TrackerCustomizationStore        *models.TrackerCustomizationStore
	DashboardSettingsStore           *models.DashboardSettingsStore
	LogExclusionsStore               *models.LogExclusionsStore
	InstanceCrossSeedCompletionStore *models.InstanceCrossSeedCompletionStore
	OrphanScanStore                  *models.OrphanScanStore
	OrphanScanService                *orphanscan.Service
	DirScanService                   *dirscan.Service
	ArrInstanceStore                 *models.ArrInstanceStore
	ArrService                       *arr.Service
}

type Server added in v1.0.0

type Server struct {
	// contains filtered or unexported fields
}

func NewServer added in v1.0.0

func NewServer(deps *Dependencies) *Server

func (*Server) Handler added in v1.0.0

func (s *Server) Handler() (*chi.Mux, error)

func (*Server) ListenAndServe added in v1.0.0

func (s *Server) ListenAndServe() error

func (*Server) ListenAndServeReady added in v1.8.0

func (s *Server) ListenAndServeReady(ready chan<- struct{}) error

ListenAndServeReady behaves like ListenAndServe but signals once the listener is active.

func (*Server) Open added in v1.0.0

func (s *Server) Open() error

func (*Server) Shutdown added in v1.0.0

func (s *Server) Shutdown(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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