api

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: GPL-2.0 Imports: 27 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
	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
}

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) 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