model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPathMatchFailed         = fmt.Errorf("path match failed")
	ErrEpisodeAlreadySatisfied = fmt.Errorf("episode already satisfied by another file")
	ErrInstanceNotFound        = fmt.Errorf("instance not found")
)

Functions

This section is empty.

Types

type ConfigInstance

type ConfigInstance struct {
	Name     string `json:"name"`
	Type     string `json:"type"` // "radarr" or "sonarr"
	URL      string `json:"url"`
	APIKey   string `json:"api_key"`
	Category string `json:"category"`
	Enabled  bool   `json:"enabled"`
}

ConfigInstance represents an arrs instance from configuration

type ConfigManager

type ConfigManager interface {
	GetConfig() *config.Config
	GetConfigGetter() config.ConfigGetter
	UpdateConfig(config *config.Config) error
	SaveConfig() error
}

ConfigManager interface defines methods needed for configuration management

Jump to

Keyboard shortcuts

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