arr

package
v0.0.0-...-087bd63 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Type ServiceType
	// contains filtered or unexported fields
}

func NewArrService

func NewArrService(container *types.Container, xmlConfigContent *bytes.Buffer) (*Service, error)

func (*Service) Address

func (s *Service) Address() string

func (*Service) ApiKey

func (s *Service) ApiKey() string

func (*Service) Client

func (s *Service) Client() *arrclient.Client

func (*Service) SyncLevel

func (s *Service) SyncLevel() string

func (*Service) ToProwlarrApplication

func (s *Service) ToProwlarrApplication(prowlarr *Service) *prowlarrclient.ProwlarrApplication

type ServiceType

type ServiceType int
const (
	Prowlarr ServiceType = iota
	Radarr
	Sonarr
	Lidarr
	Readarr
)

func FromImplementation

func FromImplementation(implementation string) ServiceType

func (ServiceType) ConfigContract

func (t ServiceType) ConfigContract() string

func (ServiceType) Implementation

func (t ServiceType) Implementation() string

type XmlConfig

type XmlConfig struct {
	XMLName   xml.Name `xml:"Config"`
	ApiKey    string   `xml:"ApiKey"`
	UrlBase   string   `xml:"UrlBase"`
	Port      string   `xml:"Port"`
	SslPort   string   `xml:"SslPort"`
	EnableSsl bool     `xml:"EnableSsl"`
}

func NewXmlConfig

func NewXmlConfig(content *bytes.Buffer) (XmlConfig, error)

Jump to

Keyboard shortcuts

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