Documentation
¶
Index ¶
- func NewOverseerrService() models.ServiceHealthChecker
- type ErrOverseerr
- type OverseerrService
- func (s *OverseerrService) CheckHealth(url, apiKey string) (models.ServiceHealth, int)
- func (s *OverseerrService) GetHealthEndpoint(baseURL string) string
- func (s *OverseerrService) GetRequests(url, apiKey string) (*types.RequestsStats, error)
- func (s *OverseerrService) SetDB(db *database.DB)
- func (s *OverseerrService) UpdateRequestStatus(url, apiKey string, requestID int, approve bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOverseerrService ¶
func NewOverseerrService() models.ServiceHealthChecker
Types ¶
type ErrOverseerr ¶
ErrOverseerr is a custom error type for Overseerr-specific errors
func (*ErrOverseerr) Error ¶
func (e *ErrOverseerr) Error() string
type OverseerrService ¶
type OverseerrService struct {
core.ServiceCore
// contains filtered or unexported fields
}
func (*OverseerrService) CheckHealth ¶
func (s *OverseerrService) CheckHealth(url, apiKey string) (models.ServiceHealth, int)
func (*OverseerrService) GetHealthEndpoint ¶
func (s *OverseerrService) GetHealthEndpoint(baseURL string) string
func (*OverseerrService) GetRequests ¶
func (s *OverseerrService) GetRequests(url, apiKey string) (*types.RequestsStats, error)
func (*OverseerrService) SetDB ¶
func (s *OverseerrService) SetDB(db *database.DB)
SetDB sets the database instance for the service
func (*OverseerrService) UpdateRequestStatus ¶
func (s *OverseerrService) UpdateRequestStatus(url, apiKey string, requestID int, approve bool) error
UpdateRequestStatus updates the status of a media request (approve/reject)
Click to show internal directories.
Click to hide internal directories.