Documentation
¶
Index ¶
- func NewPlexService() models.ServiceHealthChecker
- type PlexService
- func (s *PlexService) CheckAuthPIN(ctx context.Context, pinID int, code, clientIdentifier, product string) (*types.PlexPIN, error)
- func (s *PlexService) CheckHealth(ctx context.Context, url, apiKey string) (models.ServiceHealth, int)
- func (s *PlexService) CreateAuthPIN(ctx context.Context, clientIdentifier, product string) (*types.PlexPIN, error)
- func (s *PlexService) GetHealthEndpoint(baseURL string) string
- func (s *PlexService) GetSessions(ctx context.Context, url, apiKey string) (*types.PlexSessionsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlexService ¶
func NewPlexService() models.ServiceHealthChecker
Types ¶
type PlexService ¶
type PlexService struct {
core.ServiceCore
}
func (*PlexService) CheckAuthPIN ¶ added in v0.3.0
func (*PlexService) CheckHealth ¶
func (s *PlexService) CheckHealth(ctx context.Context, url, apiKey string) (models.ServiceHealth, int)
func (*PlexService) CreateAuthPIN ¶ added in v0.3.0
func (*PlexService) GetHealthEndpoint ¶
func (s *PlexService) GetHealthEndpoint(baseURL string) string
func (*PlexService) GetSessions ¶
func (s *PlexService) GetSessions(ctx context.Context, url, apiKey string) (*types.PlexSessionsResponse, error)
Click to show internal directories.
Click to hide internal directories.