api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: GPL-2.0 Imports: 21 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
	ClientPool        *qbittorrent.ClientPool
	SyncManager       *qbittorrent.SyncManager
	WebHandler        *web.Handler
	LicenseService    *license.Service
}

Dependencies holds all the dependencies needed for the API

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

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