Documentation ¶
Index ¶
- func RegisterArrFlags(flags *flag.FlagSet)
- func RegisterProwlarrFlags(flags *flag.FlagSet)
- type ArrConfig
- func (c *ArrConfig) BaseURL() string
- func (c *ArrConfig) LoadProwlarrConfig(flags *flag.FlagSet) error
- func (c ArrConfig) Messages() map[string]string
- func (c ArrConfig) Translates() map[string]string
- func (c *ArrConfig) UseBasicAuth() bool
- func (c *ArrConfig) UseFormAuth() bool
- func (c *ArrConfig) Validate() error
- type ProwlarrConfig
- type XML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterArrFlags ¶
func RegisterProwlarrFlags ¶
Types ¶
type ArrConfig ¶
type ArrConfig struct { App string `koanf:"app"` ApiVersion string `koanf:"api-version" validate:"required|in:v1,v3"` XMLConfig string `koanf:"config"` AuthUsername string `koanf:"auth-username"` AuthPassword string `koanf:"auth-password"` FormAuth bool `koanf:"form-auth"` EnableUnknownQueueItems bool `koanf:"enable-unknown-queue-items"` EnableAdditionalMetrics bool `koanf:"enable-additional-metrics"` URL string `koanf:"url" validate:"required|url"` // stores rendered Arr URL (with api version) ApiKey string `koanf:"api-key" validate:"required|regex:(^[a-z0-9]{32}$)"` // stores the API key DisableSSLVerify bool `koanf:"disable-ssl-verify"` // stores the disable SSL verify flag Prowlarr ProwlarrConfig `koanf:"prowlarr"` // contains filtered or unexported fields }
func LoadArrConfig ¶
func (*ArrConfig) LoadProwlarrConfig ¶
func (ArrConfig) Translates ¶
func (*ArrConfig) UseBasicAuth ¶
func (*ArrConfig) UseFormAuth ¶
type ProwlarrConfig ¶
type ProwlarrConfig struct { Backfill bool `koanf:"backfill"` BackfillSinceDate string `koanf:"backfill-since-date" validate:"date"` BackfillSinceTime time.Time }
func (ProwlarrConfig) Messages ¶
func (p ProwlarrConfig) Messages() map[string]string
func (ProwlarrConfig) Translates ¶
func (p ProwlarrConfig) Translates() map[string]string
func (ProwlarrConfig) Validate ¶
func (p ProwlarrConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.