overseerr

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOverseerrService

func NewOverseerrService() models.ServiceHealthChecker

Types

type ErrOverseerr

type ErrOverseerr struct {
	Message string
	Errors  []string
}

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)

Jump to

Keyboard shortcuts

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