Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(deps *Dependencies) *chi.Mux
NewRouter creates and configures the main application router
Types ¶
type Dependencies ¶
type Dependencies struct {
Config *config.AppConfig
DB *sql.DB
AuthService *auth.Service
InstanceStore *models.InstanceStore
ClientPool *qbittorrent.ClientPool
SyncManager *qbittorrent.SyncManager
WebHandler *web.Handler
ThemeLicenseService *services.ThemeLicenseService
MetricsManager *metrics.Manager
}
Dependencies holds all the dependencies needed for the API
Click to show internal directories.
Click to hide internal directories.