api

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: GPL-2.0 Imports: 32 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
	TrackerRuleStore          *models.TrackerRuleStore
	TrackerRuleService        *trackerrules.Service
	TrackerCustomizationStore *models.TrackerCustomizationStore
	DashboardSettingsStore    *models.DashboardSettingsStore
}

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