Documentation ¶
Overview ¶
Package dnclient generated by go-bindata.// sources: init/windows/application.ico
Index ¶
- Variables
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func Start() error
- type Client
- type Config
- type Flags
- type LidarrConfig
- type Logger
- type RadarrConfig
- type ReadarrConfig
- type Response
- type SonarrConfig
Constants ¶
This section is empty.
Variables ¶
var ( ErrNoTMDB = fmt.Errorf("TMDB ID must not be empty") ErrNoGRID = fmt.Errorf("GRID ID must not be empty") ErrNoTVDB = fmt.Errorf("TVDB ID must not be empty") ErrNoMBID = fmt.Errorf("MBID ID must not be empty") ErrNoRadarr = fmt.Errorf("configured radarr ID not found") ErrNoSonarr = fmt.Errorf("configured sonarr ID not found") ErrNoLidarr = fmt.Errorf("configured lidarr ID not found") ErrNoReadarr = fmt.Errorf("configured readarr ID not found") ErrExists = fmt.Errorf("the requested item already exists") )
Errors sent to client web requests.
var (
ErrNilAPIKey = fmt.Errorf("API key cannot be empty")
)
Errors returned by this package.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("nonexistent") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type Config ¶
type Config struct { APIKey string `json:"api_key" toml:"api_key" xml:"api_key" yaml:"api_key"` BindAddr string `json:"bind_addr" toml:"bind_addr" xml:"bind_addr" yaml:"bind_addr"` Debug bool `json:"debug" toml:"debug" xml:"debug" yaml:"debug"` Quiet bool `json:"quiet" toml:"quiet" xml:"quiet" yaml:"quiet"` LogFile string `json:"log_file" toml:"log_file" xml:"log_file" yaml:"log_file"` LogFiles int `json:"log_files" toml:"log_files" xml:"log_files" yaml:"log_files"` LogFileMb int `json:"log_file_mb" toml:"log_file_mb" xml:"log_file_mb" yaml:"log_file_mb"` Timeout cnfg.Duration `json:"timeout" toml:"timeout" xml:"timeout" yaml:"timeout"` Sonarr []*SonarrConfig `json:"sonarr,omitempty" toml:"sonarr" xml:"sonarr" yaml:"sonarr,omitempty"` Radarr []*RadarrConfig `json:"radarr,omitempty" toml:"radarr" xml:"radarr" yaml:"radarr,omitempty"` Lidarr []*LidarrConfig `json:"lidarr,omitempty" toml:"lidarr" xml:"lidarr" yaml:"lidarr,omitempty"` Readarr []*ReadarrConfig `json:"readarr,omitempty" toml:"readarr" xml:"readarr" yaml:"readarr,omitempty"` }
Config represents the data in our config file.
type Flags ¶
type Flags struct { *flag.FlagSet ConfigFile string EnvPrefix string // contains filtered or unexported fields }
Flags are our CLI input flags.
type LidarrConfig ¶
type LidarrConfig struct { *starr.Config *lidarr.Lidarr sync.RWMutex `json:"-" toml:"-" xml:"-" yaml:"-"` }
LidarrConfig represents the input data for a Lidarr server.
type Logger ¶
Logger provides a struct we can pass into other packages.
type RadarrConfig ¶
type RadarrConfig struct { *starr.Config *radarr.Radarr sync.RWMutex `json:"-" toml:"-" xml:"-" yaml:"-"` }
RadarrConfig represents the input data for a Radarr server.
type ReadarrConfig ¶
type ReadarrConfig struct { *starr.Config *readarr.Readarr sync.RWMutex `json:"-" toml:"-" xml:"-" yaml:"-"` }
ReadarrConfig represents the input data for a Readarr server.