model

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 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("item already satisfied by another file in ARR")
	ErrInstanceNotFound        = fmt.Errorf("instance not found")
)

Functions

This section is empty.

Types

type AlbumMetadata added in v0.3.0

type AlbumMetadata struct {
	Id int64 `json:"id,omitempty"`
}

type ArtistMetadata added in v0.3.0

type ArtistMetadata struct {
	Id int64 `json:"id,omitempty"`
}

type AuthorMetadata added in v0.3.0

type AuthorMetadata struct {
	Id int64 `json:"id,omitempty"`
}

type BookFileMetadata added in v0.3.0

type BookFileMetadata struct {
	Id int64 `json:"id,omitempty"`
}

type BookMetadata added in v0.3.0

type BookMetadata struct {
	Id int64 `json:"id,omitempty"`
}

type ConfigInstance

type ConfigInstance struct {
	Name     string `json:"name"`
	Type     string `json:"type"` // "radarr", "sonarr", "lidarr", "readarr", "whisparr", or "sportarr"
	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

type EpisodeFileMetadata added in v0.3.0

type EpisodeFileMetadata struct {
	Id        int64  `json:"id,omitempty"`
	SceneName string `json:"sceneName,omitempty"`
}

type EpisodeMetadata added in v0.3.0

type EpisodeMetadata struct {
	Id int64 `json:"id,omitempty"`
}

type MovieFileMetadata added in v0.3.0

type MovieFileMetadata struct {
	Id        int64  `json:"id,omitempty"`
	SceneName string `json:"sceneName,omitempty"`
}

type MovieMetadata added in v0.3.0

type MovieMetadata struct {
	Id     int64 `json:"id,omitempty"`
	TmdbId int64 `json:"tmdbId,omitempty"`
}

type SeriesMetadata added in v0.3.0

type SeriesMetadata struct {
	Id     int64 `json:"id,omitempty"`
	TvdbId int64 `json:"tvdbId,omitempty"`
}

type TrackFileMetadata added in v0.3.0

type TrackFileMetadata struct {
	Id int64 `json:"id,omitempty"`
}

type WebhookMetadata added in v0.3.0

type WebhookMetadata struct {
	EventType    string               `json:"eventType,omitempty"`
	InstanceName string               `json:"instanceName,omitempty"`
	Movie        *MovieMetadata       `json:"movie,omitempty"`
	MovieFile    *MovieFileMetadata   `json:"movieFile,omitempty"`
	Series       *SeriesMetadata      `json:"series,omitempty"`
	EpisodeFile  *EpisodeFileMetadata `json:"episodeFile,omitempty"`
	Episodes     []EpisodeMetadata    `json:"episodes,omitempty"`
	Artist       *ArtistMetadata      `json:"artist,omitempty"`
	Album        *AlbumMetadata       `json:"album,omitempty"`
	TrackFile    *TrackFileMetadata   `json:"trackFile,omitempty"`
	Author       *AuthorMetadata      `json:"author,omitempty"`
	Book         *BookMetadata        `json:"book,omitempty"`
	BookFile     *BookFileMetadata    `json:"bookFile,omitempty"`
}

Jump to

Keyboard shortcuts

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