model

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConf

type AppConf struct {
	RootScanDir                  string `yaml:"rootScanDir" json:"rootScanDir"`
	RootMediaDir                 string `yaml:"rootMediaDir" json:"rootMediaDir"`
	TheMovieDbBaseApiUrlV3       string `yaml:"theMovieDbBaseApiUrlV3" json:"theMovieDbBaseApiUrlV3"`
	ApiKey                       string `yaml:"apiKey" json:"apiKey"`
	DryRun                       bool   `yaml:"dryRun" json:"dryRun"`
	LogOutputPath                string `yaml:"logOutputPath" json:"logOutputPath"`
	Environment                  string `yaml:"environment" json:"environment"`
	LogLevel                     string `yaml:"logLevel" json:"logLevel"`
	Cron                         string `yaml:"cron" json:"cron"`
	TvShowEpisodeFormat          string `yaml:"tvShowEpisodeFormat" json:"tvShowEpisodeFormat"`
	TvShowEpisodeFileRetryFailed bool   `yaml:"tvShowEpisodeFileRetryFailed" json:"tvShowEpisodeFileRetryFailed"`
	CheckForUpdatesInterval      string `yaml:"checkForUpdatesInterval" json:"checkForUpdatesInterval"`
	GithubPersonalToken          string `yaml:"githubPersonalToken" json:"githubPersonalToken"`
	GithubUsername               string `yaml:"githubUsername" json:"githubUsername"`
	IsAutoRestartManaged         bool   `yaml:"isAutoRestartManaged" json:"isAutoRestartManaged"`
	ScanForMovieInterval         string `yaml:"scanForMovieInterval" json:"scanForMovieInterval"`
	RootMovieScanDir             string `yaml:"rootMovieScanDir" json:"rootMovieScanDir"`
	RootMovieMediaDir            string `yaml:"rootMovieMediaDir" json:"rootMovieMediaDir"`
	MovieFileRetryFailed         bool   `yaml:"movieFileRetryFailed" json:"movieFileRetryFailed"`
	MovieCustomFormat            string `yaml:"movieCustomFormat" json:"movieCustomFormat"`
	DbBucketsCleanupInterval     string `yaml:"dbBucketsCleanupInterval" json:"dbBucketsCleanupInterval"`
	LogRotateMaxNumOfBackups     int    `yaml:"logRotateMaxNumOfBackups" json:"logRotateMaxNumOfBackups"`
	LogRotateMaxAgeOfBackups     int    `yaml:"logRotateMaxAgeOfBackups" json:"logRotateMaxAgeOfBackups"`
	LogRotateMaxLogFileSize      int    `yaml:"logRotateMaxLogFileSize" json:"logRotateMaxLogFileSize"`
	LogRotateCompressBackups     bool   `yaml:"logRotateCompressBackups" json:"logRotateCompressBackups"`
	ApiPort                      int    `yaml:"apiPort" json:"apiPort"`
	UiPort                       int    `yaml:"uiPort" json:"uiPort"`
}

func (AppConf) Mask

func (receiver AppConf) Mask() AppConf

func (AppConf) UpdateFields

func (receiver AppConf) UpdateFields(update *AppConfUpdate)

type AppConfUpdate

type AppConfUpdate struct {
	RootScanDir                  interface{} `yaml:"rootScanDir" json:"rootScanDir,omitempty"`
	RootMediaDir                 interface{} `yaml:"rootMediaDir" json:"rootMediaDir,omitempty"`
	TheMovieDbBaseApiUrlV3       interface{} `yaml:"theMovieDbBaseApiUrlV3" json:"theMovieDbBaseApiUrlV3,omitempty"`
	ApiKey                       interface{} `yaml:"apiKey" json:"apiKey,omitempty"`
	DryRun                       interface{} `yaml:"dryRun" json:"dryRun,omitempty"`
	LogOutputPath                interface{} `yaml:"logOutputPath" json:"logOutputPath,omitempty"`
	Environment                  interface{} `yaml:"environment" json:"environment,omitempty"`
	LogLevel                     interface{} `yaml:"logLevel" json:"logLevel,omitempty"`
	Cron                         interface{} `yaml:"cron" json:"cron,omitempty"`
	TvShowEpisodeFormat          interface{} `yaml:"tvShowEpisodeFormat" json:"tvShowEpisodeFormat,omitempty"`
	TvShowEpisodeFileRetryFailed interface{} `yaml:"tvShowEpisodeFileRetryFailed" json:"tvShowEpisodeFileRetryFailed,omitempty"`
	CheckForUpdatesInterval      interface{} `yaml:"checkForUpdatesInterval" json:"checkForUpdatesInterval,omitempty"`
	GithubPersonalToken          interface{} `yaml:"githubPersonalToken" json:"githubPersonalToken,omitempty"`
	GithubUsername               interface{} `yaml:"githubUsername" json:"githubUsername,omitempty"`
	IsAutoRestartManaged         interface{} `yaml:"isAutoRestartManaged" json:"isAutoRestartManaged,omitempty"`
	ScanForMovieInterval         interface{} `yaml:"scanForMovieInterval" json:"scanForMovieInterval,omitempty"`
	RootMovieScanDir             interface{} `yaml:"rootMovieScanDir" json:"rootMovieScanDir,omitempty"`
	RootMovieMediaDir            interface{} `yaml:"rootMovieMediaDir" json:"rootMovieMediaDir,omitempty"`
	MovieFileRetryFailed         interface{} `yaml:"movieFileRetryFailed" json:"movieFileRetryFailed,omitempty"`
	MovieCustomFormat            interface{} `yaml:"movieCustomFormat" json:"movieCustomFormat,omitempty"`
	DbBucketsCleanupInterval     interface{} `yaml:"dbBucketsCleanupInterval" json:"dbBucketsCleanupInterval,omitempty"`
	LogRotateMaxNumOfBackups     interface{} `yaml:"logRotateMaxNumOfBackups" json:"logRotateMaxNumOfBackups,omitempty"`
	LogRotateMaxAgeOfBackups     interface{} `yaml:"logRotateMaxAgeOfBackups" json:"logRotateMaxAgeOfBackups,omitempty"`
	LogRotateMaxLogFileSize      interface{} `yaml:"logRotateMaxLogFileSize" json:"logRotateMaxLogFileSize,omitempty"`
	LogRotateCompressBackups     interface{} `yaml:"logRotateCompressBackups" json:"logRotateCompressBackups,omitempty"`
	ApiPort                      interface{} `yaml:"apiPort" json:"apiPort,omitempty"`
	UiPort                       interface{} `yaml:"uiPort" json:"uiPort,omitempty"`
}

type CronJob

type CronJob struct {
	ScheduleToUse string
	MethodToRun   func()
}

type FilenameFormatPair

type FilenameFormatPair struct {
	StartIndex    int
	EndIndex      int
	PropertyName  string
	PropertyValue string
}

type GithubRelease

type GithubRelease struct {
	Url             string               `json:"url,omitempty"`
	HtmlUrl         string               `json:"html_url,omitempty"`
	AssetsUrl       string               `json:"assets_url,omitempty"`
	UploadUrl       string               `json:"upload_url,omitempty"`
	TarballUrl      string               `json:"tarball_url,omitempty"`
	ZipballUrl      string               `json:"zipball_url,omitempty"`
	Id              int                  `json:"id,omitempty"`
	NodeId          string               `json:"node_id,omitempty"`
	TagName         string               `json:"tag_name,omitempty"`
	TargetCommitish string               `json:"target_commitish,omitempty"`
	Name            string               `json:"name,omitempty"`
	Body            string               `json:"body,omitempty"`
	Draft           bool                 `json:"draft,omitempty"`
	Prerelease      bool                 `json:"prerelease,omitempty"`
	CreatedAt       string               `json:"created_at,omitempty"`
	PublishedAt     string               `json:"published_at,omitempty"`
	Author          GithubUser           `json:"author"`
	Assets          []GithubReleaseAsset `json:"assets"`
}

type GithubReleaseAsset

type GithubReleaseAsset struct {
	Url                string     `json:"url,omitempty"`
	BrowserDownloadUrl string     `json:"browser_download_url,omitempty"`
	Id                 int        `json:"id,omitempty"`
	NodeId             string     `json:"node_id,omitempty"`
	Name               string     `json:"name,omitempty"`
	Label              string     `json:"label,omitempty"`
	State              string     `json:"state,omitempty"`
	ContentType        string     `json:"content_type,omitempty"`
	Size               int        `json:"size,omitempty"`
	DownloadCount      int        `json:"download_count,omitempty"`
	CreatedAt          string     `json:"created_at,omitempty"`
	UpdatedAt          string     `json:"updated_at,omitempty"`
	Uploader           GithubUser `json:"uploader"`
}

type GithubUser

type GithubUser struct {
	Login             string `json:"login,omitempty"`
	Id                int    `json:"id,omitempty"`
	NodeId            string `json:"node_id,omitempty"`
	AvatarUrl         string `json:"avatar_url,omitempty"`
	GravatarId        string `json:"gravatar_id,omitempty"`
	Url               string `json:"url,omitempty"`
	HtmlUrl           string `json:"html_url,omitempty"`
	FollowersUrl      string `json:"followers_url,omitempty"`
	FollowingUrl      string `json:"following_url,omitempty"`
	GistsUrl          string `json:"gists_url,omitempty"`
	StarredUrl        string `json:"starred_url,omitempty"`
	SubscriptionsUrl  string `json:"subscriptions_url,omitempty"`
	OrganizationsUrl  string `json:"organizations_url,omitempty"`
	ReposUrl          string `json:"repos_url,omitempty"`
	EventsUrl         string `json:"events_url,omitempty"`
	ReceivedEventsUrl string `json:"received_events_url,omitempty"`
	Type              string `json:"type,omitempty"`
	SiteAdmin         bool   `json:"site_admin,omitempty"`
}

type MovieFile

type MovieFile struct {
	FilenameOriginal        string          `json:"filenameOriginal,omitempty"`
	FilenameNew             string          `json:"filenameNew,omitempty"`
	AbsolutePath            string          `json:"absolutePath,omitempty"`
	Movie                   TheMovieDbMovie `json:"movie,omitempty"`
	SuccessfulParseOriginal bool            `json:"successfulParseOriginal,omitempty"`
	SuccessfulCopyFile      bool            `json:"successfulCopyFile,omitempty"`
	ParsedFilename          ParsedFilename  `json:"parsedFilename,omitempty"`
}

type ParsedFilename

type ParsedFilename struct {
	Name          string `json:"name,omitempty"`
	Title         string `json:"title,omitempty"`
	SeasonNumber  string `json:"seasonNumber,omitempty"`
	EpisodeNumber string `json:"episodeNumber,omitempty"`
	Year          string `json:"year,omitempty"`
	Resolution    string `json:"resolution,omitempty"`
}

type TheMovieDbMovie

type TheMovieDbMovie struct {
	PosterPath       string  `json:"poster_path"`
	Adult            bool    `json:"adult"`
	Overview         string  `json:"overview"`
	ReleaseDate      string  `json:"release_date"`
	GenreIds         []int   `json:"genre_ids"`
	Id               int     `json:"id"`
	OriginalTitle    string  `json:"original_title"`
	OriginalLanguage string  `json:"original_language"`
	Title            string  `json:"Title"`
	BackdropPath     string  `json:"backdrop_path"`
	Popularity       float32 `json:"popularity"`
	VoteCount        int     `json:"vote_count"`
	Video            bool    `json:"video"`
	VoteAverage      float32 `json:"vote_average"`
}

type TheMovieDbSearchMovieResponse

type TheMovieDbSearchMovieResponse struct {
	Page         int               `json:"page"`
	Results      []TheMovieDbMovie `json:"results"`
	TotalResults int               `json:"total_results"`
	TotalPages   int               `json:"total_pages"`
}

type TheMovieDbSearchTvResponse

type TheMovieDbSearchTvResponse struct {
	Page         int                `json:"page"`
	Results      []TheMovieDbTvShow `json:"results"`
	TotalResults int                `json:"total_results"`
	TotalPages   int                `json:"total_pages"`
}

type TheMovieDbTvShow

type TheMovieDbTvShow struct {
	PosterPath       string  `json:"poster_path"`
	Popularity       float32 `json:"popularity"`
	Id               int     `json:"id"`
	BackdropPath     string  `json:"backdrop_path"`
	VoteAverage      float32 `json:"vote_average"`
	Overview         string  `json:"overview"`
	FirstAirDate     string  `json:"first_air_date"`
	OriginalCountry  string  `json:"original_country"`
	GenreIds         []int   `json:"genre_ids"`
	OriginalLanguage string  `json:"original_language"`
	VoteCount        int     `json:"vote_count"`
	Name             string  `json:"name"`
	OriginalName     string  `json:"original_name"`
}

type TheMovieDbTvShowEpisodeDetails

type TheMovieDbTvShowEpisodeDetails struct {
	AirDate       string `json:"air_date"`
	EpisodeNumber int    `json:"episode_number"`
	Name          string `json:"name"`
	Overview      string `json:"overview"`
	Id            int    `json:"id"`
	SeasonNumber  int    `json:"season_number"`
}

type TvShowEpisodeFile

type TvShowEpisodeFile struct {
	FilenameOriginal        string                         `json:"filenameOriginal,omitempty"`
	FilenameNew             string                         `json:"filenameNew,omitempty"`
	AbsolutePath            string                         `json:"absolutePath,omitempty"`
	TvShow                  TheMovieDbTvShow               `json:"tvShow"`
	TvShowEpisode           TheMovieDbTvShowEpisodeDetails `json:"tvShowEpisode"`
	SuccessfulParseOriginal bool                           `json:"successfulParseOriginal"`
	SuccessfulCopyFile      bool                           `json:"successfulCopyFile"`
	ParsedFilename          ParsedFilename                 `json:"parsedFilename"`
}

Jump to

Keyboard shortcuts

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