prowlarr

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

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 HealthResponse struct {
	Source  string `json:"source"`
	Type    string `json:"type"`
	Message string `json:"message"`
	WikiURL string `json:"wikiUrl"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL