Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProwlarrService ¶
func NewProwlarrService() models.ServiceHealthChecker
Types ¶
type ErrProwlarr ¶
type ErrProwlarr struct { Op string // Operation that failed Err error // Underlying error HttpCode int // HTTP status code if applicable }
Custom error types for better error handling
func (*ErrProwlarr) Error ¶
func (e *ErrProwlarr) Error() string
func (*ErrProwlarr) Unwrap ¶
func (e *ErrProwlarr) Unwrap() error
type HealthResponse ¶
type ProwlarrService ¶
type ProwlarrService struct {
core.ServiceCore
}
func (*ProwlarrService) CheckHealth ¶
func (s *ProwlarrService) CheckHealth(url, apiKey string) (models.ServiceHealth, int)
func (*ProwlarrService) GetHealthEndpoint ¶
func (s *ProwlarrService) GetHealthEndpoint(baseURL string) string
func (*ProwlarrService) GetSystemStatus ¶
func (s *ProwlarrService) GetSystemStatus(baseURL, apiKey string) (string, error)
GetSystemStatus fetches the system status from Prowlarr
type SystemStatusResponse ¶
type SystemStatusResponse struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.