Documentation
¶
Index ¶
- func BroadcastHealth(health models.ServiceHealth)
- func GetAuthConfig(c *gin.Context)
- type AuthHandler
- type AutobrrHandler
- type BuiltinAuthHandler
- func (h *BuiltinAuthHandler) CheckRegistrationStatus(c *gin.Context)
- func (h *BuiltinAuthHandler) GetUserInfo(c *gin.Context)
- func (h *BuiltinAuthHandler) Login(c *gin.Context)
- func (h *BuiltinAuthHandler) Logout(c *gin.Context)
- func (h *BuiltinAuthHandler) Register(c *gin.Context)
- func (h *BuiltinAuthHandler) Verify(c *gin.Context)
- type DatabaseService
- type EventsHandler
- type HealthHandler
- type MaintainerrHandler
- type OmegabrrHandler
- type OverseerrHandler
- type PlexHandler
- type ProwlarrHandler
- type RadarrHandler
- type SettingsHandler
- type SonarrHandler
- type TailscaleHandler
- type WebhookRequest
- type WebhookResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastHealth ¶
func BroadcastHealth(health models.ServiceHealth)
BroadcastHealth sends health updates to all connected clients
func GetAuthConfig ¶
GetAuthConfig returns the available authentication methods
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
func NewAuthHandler ¶
func NewAuthHandler(config *types.AuthConfig, store cache.Store) *AuthHandler
func (*AuthHandler) Callback ¶
func (h *AuthHandler) Callback(c *gin.Context)
Callback handles the OIDC provider callback
func (*AuthHandler) Login ¶
func (h *AuthHandler) Login(c *gin.Context)
Login initiates the OIDC authentication flow
func (*AuthHandler) Logout ¶
func (h *AuthHandler) Logout(c *gin.Context)
Logout handles user logout
func (*AuthHandler) RefreshToken ¶
func (h *AuthHandler) RefreshToken(c *gin.Context)
RefreshToken handles token refresh
func (*AuthHandler) UserInfo ¶
func (h *AuthHandler) UserInfo(c *gin.Context)
UserInfo returns the current user's information
func (*AuthHandler) VerifyToken ¶
func (h *AuthHandler) VerifyToken(c *gin.Context)
VerifyToken verifies a JWT token
type AutobrrHandler ¶
type AutobrrHandler struct {
// contains filtered or unexported fields
}
func NewAutobrrHandler ¶
func NewAutobrrHandler(db *database.DB, store cache.Store) *AutobrrHandler
func (*AutobrrHandler) GetAutobrrIRCStatus ¶
func (h *AutobrrHandler) GetAutobrrIRCStatus(c *gin.Context)
func (*AutobrrHandler) GetAutobrrReleaseStats ¶
func (h *AutobrrHandler) GetAutobrrReleaseStats(c *gin.Context)
type BuiltinAuthHandler ¶
type BuiltinAuthHandler struct {
// contains filtered or unexported fields
}
func NewBuiltinAuthHandler ¶
func NewBuiltinAuthHandler(db *database.DB, cache cache.Store) *BuiltinAuthHandler
func (*BuiltinAuthHandler) CheckRegistrationStatus ¶
func (h *BuiltinAuthHandler) CheckRegistrationStatus(c *gin.Context)
CheckRegistrationStatus checks if registration is allowed (no users exist)
func (*BuiltinAuthHandler) GetUserInfo ¶
func (h *BuiltinAuthHandler) GetUserInfo(c *gin.Context)
GetUserInfo returns the current user's information
func (*BuiltinAuthHandler) Login ¶
func (h *BuiltinAuthHandler) Login(c *gin.Context)
Login handles user login
func (*BuiltinAuthHandler) Logout ¶
func (h *BuiltinAuthHandler) Logout(c *gin.Context)
Logout handles user logout
func (*BuiltinAuthHandler) Register ¶
func (h *BuiltinAuthHandler) Register(c *gin.Context)
Register handles user registration
func (*BuiltinAuthHandler) Verify ¶
func (h *BuiltinAuthHandler) Verify(c *gin.Context)
Verify verifies the session token
type DatabaseService ¶
type DatabaseService interface {
GetServiceByInstanceID(id string) (*models.ServiceConfiguration, error)
}
DatabaseService defines the database operations needed by HealthHandler
type EventsHandler ¶
type EventsHandler struct {
// contains filtered or unexported fields
}
func NewEventsHandler ¶
func NewEventsHandler(db *database.DB, health *services.HealthService) *EventsHandler
func (*EventsHandler) StartHealthMonitor ¶
func (h *EventsHandler) StartHealthMonitor()
StartHealthMonitor starts the background health check process
func (*EventsHandler) StopHealthMonitor ¶
func (h *EventsHandler) StopHealthMonitor()
StopHealthMonitor stops the health monitoring
func (*EventsHandler) StreamHealth ¶
func (h *EventsHandler) StreamHealth(c *gin.Context)
StreamHealth handles SSE connections for real-time health updates
type HealthHandler ¶
type HealthHandler struct {
// contains filtered or unexported fields
}
func NewHealthHandler ¶
func NewHealthHandler(db DatabaseService, health *services.HealthService, creator ...models.ServiceCreator) *HealthHandler
func (*HealthHandler) CheckHealth ¶
func (h *HealthHandler) CheckHealth(c *gin.Context)
type MaintainerrHandler ¶
type MaintainerrHandler struct {
// contains filtered or unexported fields
}
func NewMaintainerrHandler ¶
func NewMaintainerrHandler(db *database.DB, cache cache.Store) *MaintainerrHandler
func (*MaintainerrHandler) GetMaintainerrCollections ¶
func (h *MaintainerrHandler) GetMaintainerrCollections(c *gin.Context)
type OmegabrrHandler ¶
type OmegabrrHandler struct {
// contains filtered or unexported fields
}
func NewOmegabrrHandler ¶
func NewOmegabrrHandler(db *database.DB, cache cache.Store) *OmegabrrHandler
func (*OmegabrrHandler) GetOmegabrrStatus ¶
func (h *OmegabrrHandler) GetOmegabrrStatus(c *gin.Context)
func (*OmegabrrHandler) TriggerWebhookAll ¶
func (h *OmegabrrHandler) TriggerWebhookAll(c *gin.Context)
TriggerWebhookAll handles webhook trigger for all updates
func (*OmegabrrHandler) TriggerWebhookArrs ¶
func (h *OmegabrrHandler) TriggerWebhookArrs(c *gin.Context)
TriggerWebhookArrs handles webhook trigger for ARRs
func (*OmegabrrHandler) TriggerWebhookLists ¶
func (h *OmegabrrHandler) TriggerWebhookLists(c *gin.Context)
TriggerWebhookLists handles webhook trigger for Lists
type OverseerrHandler ¶
type OverseerrHandler struct {
// contains filtered or unexported fields
}
func NewOverseerrHandler ¶
func NewOverseerrHandler(db *database.DB, cache cache.Store) *OverseerrHandler
func (*OverseerrHandler) GetRequests ¶
func (h *OverseerrHandler) GetRequests(c *gin.Context)
func (*OverseerrHandler) UpdateRequestStatus ¶
func (h *OverseerrHandler) UpdateRequestStatus(c *gin.Context)
type PlexHandler ¶
type PlexHandler struct {
// contains filtered or unexported fields
}
func NewPlexHandler ¶
func NewPlexHandler(db *database.DB, cache cache.Store) *PlexHandler
func (*PlexHandler) GetPlexSessions ¶
func (h *PlexHandler) GetPlexSessions(c *gin.Context)
type ProwlarrHandler ¶
type ProwlarrHandler struct {
// contains filtered or unexported fields
}
func NewProwlarrHandler ¶
func NewProwlarrHandler(db *database.DB, cache cache.Store) *ProwlarrHandler
func (*ProwlarrHandler) GetIndexers ¶
func (h *ProwlarrHandler) GetIndexers(c *gin.Context)
func (*ProwlarrHandler) GetStats ¶
func (h *ProwlarrHandler) GetStats(c *gin.Context)
type RadarrHandler ¶
type RadarrHandler struct {
// contains filtered or unexported fields
}
func NewRadarrHandler ¶
func NewRadarrHandler(db *database.DB, cache cache.Store) *RadarrHandler
func (*RadarrHandler) DeleteQueueItem ¶
func (h *RadarrHandler) DeleteQueueItem(c *gin.Context)
DeleteQueueItem handles the deletion of a queue item with specified options
func (*RadarrHandler) GetQueue ¶
func (h *RadarrHandler) GetQueue(c *gin.Context)
type SettingsHandler ¶
type SettingsHandler struct {
// contains filtered or unexported fields
}
func NewSettingsHandler ¶
func NewSettingsHandler(db *database.DB, health *services.HealthService) *SettingsHandler
func (*SettingsHandler) DeleteSettings ¶
func (h *SettingsHandler) DeleteSettings(c *gin.Context)
func (*SettingsHandler) GetSettings ¶
func (h *SettingsHandler) GetSettings(c *gin.Context)
func (*SettingsHandler) SaveSettings ¶
func (h *SettingsHandler) SaveSettings(c *gin.Context)
type SonarrHandler ¶
type SonarrHandler struct {
// contains filtered or unexported fields
}
func NewSonarrHandler ¶
func NewSonarrHandler(db *database.DB, cache cache.Store) *SonarrHandler
func (*SonarrHandler) DeleteQueueItem ¶
func (h *SonarrHandler) DeleteQueueItem(c *gin.Context)
func (*SonarrHandler) GetQueue ¶
func (h *SonarrHandler) GetQueue(c *gin.Context)
func (*SonarrHandler) GetStats ¶
func (h *SonarrHandler) GetStats(c *gin.Context)
type TailscaleHandler ¶
type TailscaleHandler struct {
// contains filtered or unexported fields
}
func NewTailscaleHandler ¶
func NewTailscaleHandler(db *database.DB, cache cache.Store) *TailscaleHandler
func (*TailscaleHandler) GetTailscaleDevices ¶
func (h *TailscaleHandler) GetTailscaleDevices(c *gin.Context)