domain

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrConfig

type ArrConfig struct {
	Name                   string     `koanf:"name"`
	Type                   ArrType    `koanf:"type"`
	Host                   string     `koanf:"host"`
	Apikey                 string     `koanf:"apikey"`
	BasicAuth              *BasicAuth `koanf:"basicAuth"`
	Filters                []int      `koanf:"filters"`
	TagsInclude            []string   `koanf:"tagsInclude"`
	TagsExclude            []string   `koanf:"tagsExclude"`
	MatchRelease           bool       `koanf:"matchRelease"`
	ExcludeAlternateTitles bool       `koanf:"excludeAlternateTitles"`
	IncludeUnmonitored     bool       `koanf:"includeUnmonitored"`
}

type ArrType

type ArrType string
var (
	ArrTypeRadarr   ArrType = "radarr"
	ArrTypeSonarr   ArrType = "sonarr"
	ArrTypeReadarr  ArrType = "readarr"
	ArrTypeLidarr   ArrType = "lidarr"
	ArrTypeWhisparr ArrType = "whisparr"
)

type AutobrrConfig

type AutobrrConfig struct {
	Host      string     `koanf:"host"`
	Apikey    string     `koanf:"apikey"`
	BasicAuth *BasicAuth `koanf:"basicAuth"`
}

type BasicAuth

type BasicAuth struct {
	User string `koanf:"user"`
	Pass string `koanf:"pass"`
}

type Config

type Config struct {
	Server struct {
		Host     string `koanf:"host"`
		Port     int    `koanf:"port"`
		APIToken string `koanf:"apiToken"`
	} `koanf:"server"`
	Schedule string `koanf:"schedule"`
	Clients  struct {
		Autobrr *AutobrrConfig `koanf:"autobrr"`
		Arr     []*ArrConfig   `koanf:"arr"`
	} `koanf:"clients"`
	Lists []*ListConfig `koanf:"lists"`
}

func NewConfig

func NewConfig(configPath string) *Config

type ListConfig added in v1.7.0

type ListConfig struct {
	Name         string            `koanf:"name"`
	Type         ListType          `koanf:"type"`
	URL          string            `koanf:"url"`
	BasicAuth    *BasicAuth        `koanf:"basicAuth"`
	Filters      []int             `koanf:"filters"`
	MatchRelease bool              `koanf:"matchRelease"`
	Album        bool              `koanf:"album"`
	Headers      map[string]string `koanf:"headers"`
}

type ListType added in v1.7.0

type ListType string
var (
	ListTypeTrakt      ListType = "trakt"
	ListTypeMdblist    ListType = "mdblist"
	ListTypeMetacritic ListType = "metacritic"
	ListTypePlaintext  ListType = "plaintext"
	ListTypeSteam      ListType = "steam"
)

Jump to

Keyboard shortcuts

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