Documentation
¶
Overview ¶
This file is autogenerated by Golem Do NOT make modifications, they will be lost
Index ¶
- func Background(m Medium) string
- func Cover(m Medium) string
- func DownloadsCreate(c *gin.Context)
- func DownloadsDelete(c *gin.Context, id string)
- func DownloadsIndex(c *gin.Context)
- func DownloadsMedium(c *gin.Context, id string)
- func DownloadsRecent(c *gin.Context)
- func DownloadsSelect(c *gin.Context, id string)
- func DownloadsSetting(c *gin.Context, id string)
- func DownloadsShow(c *gin.Context, id string)
- func DownloadsUpdate(c *gin.Context, id string)
- func EpisodesSetting(c *gin.Context, id string)
- func EpisodesUpdate(c *gin.Context, id string)
- func FeedsCreate(c *gin.Context)
- func FeedsDelete(c *gin.Context, id string)
- func FeedsIndex(c *gin.Context)
- func FeedsShow(c *gin.Context, id string)
- func FeedsUpdate(c *gin.Context, id string)
- func Index(c *gin.Context)
- func MoviesCreate(c *gin.Context)
- func MoviesDelete(c *gin.Context, id string)
- func MoviesIndex(c *gin.Context)
- func MoviesPaths(c *gin.Context, id string)
- func MoviesSetting(c *gin.Context, id string)
- func MoviesShow(c *gin.Context, id string)
- func MoviesUpdate(c *gin.Context, id string)
- func ReleasesCreate(c *gin.Context)
- func ReleasesDelete(c *gin.Context, id string)
- func ReleasesIndex(c *gin.Context)
- func ReleasesSetting(c *gin.Context, id string)
- func ReleasesShow(c *gin.Context, id string)
- func ReleasesUpdate(c *gin.Context, id string)
- func SeriesCreate(c *gin.Context)
- func SeriesCurrentSeason(c *gin.Context, id string)
- func SeriesDelete(c *gin.Context, id string)
- func SeriesIndex(c *gin.Context)
- func SeriesPaths(c *gin.Context, id string)
- func SeriesSeasonEpisodes(c *gin.Context, id string, season string)
- func SeriesSeasonEpisodesAll(c *gin.Context, id string)
- func SeriesSeasons(c *gin.Context, id string)
- func SeriesSetting(c *gin.Context, id string)
- func SeriesShow(c *gin.Context, id string)
- func SeriesUpdate(c *gin.Context, id string)
- func SeriesWatches(c *gin.Context, id string)
- func UpcomingIndex(c *gin.Context)
- type Application
- type Cache
- type Config
- type Connection
- type Connector
- func (c *Connector) ActiveDownloads() ([]*Download, error)
- func (c *Connector) DownloadSelect(id, mediumId string, num int) error
- func (c *Connector) DownloadSetting(id, setting string, value bool) error
- func (c *Connector) EpisodePaths(id string) ([]Path, error)
- func (c *Connector) EpisodeSetting(id, setting string, value bool) error
- func (c *Connector) MediumWatched(id primitive.ObjectID) bool
- func (c *Connector) MoviePaths(id string) ([]Path, error)
- func (c *Connector) MovieSetting(id, setting string, value bool) error
- func (c *Connector) RecentDownloads(page int) ([]*Download, error)
- func (c *Connector) ReleaseSetting(id, setting string, value bool) error
- func (c *Connector) SeriesActive() ([]*Series, error)
- func (c *Connector) SeriesAll() ([]*Series, error)
- func (c *Connector) SeriesAllUnwatched(s *Series) (int, error)
- func (c *Connector) SeriesAllUnwatchedCached(s *Series) (int, error)
- func (c *Connector) SeriesCurrentSeason(id string) (int, error)
- func (c *Connector) SeriesPaths(id string) ([]Path, error)
- func (c *Connector) SeriesSeasonEpisodes(id string, season string) ([]*Episode, error)
- func (c *Connector) SeriesSeasonEpisodesAll(id string) ([]*Episode, error)
- func (c *Connector) SeriesSeasons(id string) ([]int, error)
- func (c *Connector) SeriesSetting(id, setting string, value bool) error
- func (c *Connector) SeriesWatches(id string) ([]*Watch, error)
- func (c *Connector) Upcoming() ([]*Episode, error)
- type Download
- type DownloadFile
- type DownloadSelector
- type Episode
- type Feed
- type Medium
- type Movie
- type Path
- type Release
- type SearchParams
- type Series
- type Server
- type Setting
- type Watch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Background ¶
func DownloadsCreate ¶
func DownloadsDelete ¶
func DownloadsIndex ¶
func DownloadsMedium ¶ added in v0.2.0
func DownloadsRecent ¶ added in v0.2.0
func DownloadsSelect ¶ added in v0.2.0
func DownloadsSetting ¶ added in v0.2.0
func DownloadsShow ¶
func DownloadsUpdate ¶
func EpisodesSetting ¶ added in v0.2.0
func EpisodesUpdate ¶
func FeedsCreate ¶ added in v0.2.0
func FeedsDelete ¶ added in v0.2.0
func FeedsIndex ¶ added in v0.2.0
func FeedsUpdate ¶ added in v0.2.0
func MoviesCreate ¶
func MoviesDelete ¶
func MoviesIndex ¶
func MoviesPaths ¶ added in v0.2.0
func MoviesSetting ¶ added in v0.2.0
func MoviesShow ¶
func MoviesUpdate ¶
func ReleasesCreate ¶
func ReleasesDelete ¶
func ReleasesIndex ¶
func ReleasesSetting ¶ added in v0.2.0
func ReleasesShow ¶
func ReleasesUpdate ¶
func SeriesCreate ¶
func SeriesCurrentSeason ¶ added in v0.2.0
func SeriesDelete ¶
func SeriesIndex ¶
func SeriesPaths ¶ added in v0.2.0
func SeriesSeasonEpisodesAll ¶ added in v0.2.0
func SeriesSeasons ¶
func SeriesSetting ¶ added in v0.2.0
func SeriesShow ¶
func SeriesUpdate ¶
func SeriesWatches ¶ added in v0.2.0
func UpcomingIndex ¶
Types ¶
type Application ¶
type Application struct { Config *Config Router *gin.Engine DB *Connector Cache *Cache Log *logrus.Entry }
func App ¶
func App() *Application
type Config ¶
type Config struct { Mode string `yaml:"mode"` Port int `yaml:"port"` Connections map[string]*Connection `yaml:"connections"` Cron bool `yaml:"cron"` Redis struct { Address string `yaml:"address"` } `yaml:"redis"` Filesystems struct { Enabled bool `yaml:"enabled"` Directories []string `yaml:"directories"` } `yaml:"filesystems"` }
func ConfigInstance ¶
func ConfigInstance() *Config
type Connection ¶
type Connector ¶
type Connector struct { Download *grimoire.Store[*Download] Episode *grimoire.Store[*Episode] Feed *grimoire.Store[*Feed] Medium *grimoire.Store[*Medium] Movie *grimoire.Store[*Movie] Release *grimoire.Store[*Release] Series *grimoire.Store[*Series] Watch *grimoire.Store[*Watch] }
func NewConnector ¶
func (*Connector) ActiveDownloads ¶
func (*Connector) DownloadSelect ¶ added in v0.2.0
func (*Connector) DownloadSetting ¶ added in v0.2.0
func (*Connector) EpisodePaths ¶ added in v0.2.0
func (*Connector) EpisodeSetting ¶
func (*Connector) MediumWatched ¶ added in v0.2.0
func (*Connector) MoviePaths ¶ added in v0.2.0
func (*Connector) MovieSetting ¶ added in v0.2.0
func (*Connector) RecentDownloads ¶ added in v0.2.0
func (*Connector) ReleaseSetting ¶ added in v0.2.0
func (*Connector) SeriesActive ¶
func (*Connector) SeriesAllUnwatched ¶
func (*Connector) SeriesAllUnwatchedCached ¶ added in v0.2.0
func (*Connector) SeriesCurrentSeason ¶ added in v0.2.0
func (*Connector) SeriesPaths ¶ added in v0.2.0
func (*Connector) SeriesSeasonEpisodes ¶
func (*Connector) SeriesSeasonEpisodesAll ¶ added in v0.2.0
func (*Connector) SeriesSetting ¶
func (*Connector) SeriesWatches ¶ added in v0.2.0
type Download ¶
type Download struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` //CreatedAt time.Time `json:"created_at" bson:"created_at"` //UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` MediumId primitive.ObjectID `json:"medium_id" bson:"medium_id"` Medium *Medium `json:"medium" bson:"-"` Auto bool `json:"auto" bson:"auto"` Multi bool `json:"multi" bson:"multi"` Force bool `json:"force" bson:"force"` Url string `json:"url" bson:"url"` ReleaseId string `json:"release_id" bson:"tdo_id"` Thash string `json:"thash" bson:"thash"` Selected string `json:"selected" bson:"selected"` Status string `json:"status" bson:"status"` Files []*DownloadFile `json:"download_files" bson:"download_files"` }
func NewDownload ¶
func NewDownload() *Download
type DownloadFile ¶ added in v0.2.0
type DownloadFile struct { Id primitive.ObjectID `json:"id" bson:"_id"` MediumId primitive.ObjectID `json:"medium_id" bson:"medium_id"` Medium *Medium `json:"medium" bson:"medium"` Num int `json:"num" bson:"num"` }
func NewDownloadFile ¶ added in v0.2.0
func NewDownloadFile() *DownloadFile
type DownloadSelector ¶ added in v0.2.0
type Episode ¶
type Episode struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` //CreatedAt time.Time `json:"created_at" bson:"created_at"` //UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` Type string `json:"type" bson:"_type"` SeriesId primitive.ObjectID `json:"series_id" bson:"series_id"` Kind primitive.Symbol `json:"kind" bson:"kind"` Source string `json:"source" bson:"source"` SourceId string `json:"source_id" bson:"source_id"` Title string `json:"title" bson:"title"` Description string `json:"description" bson:"description"` Slug string `json:"slug" bson:"slug"` Text []string `json:"text" bson:"text"` Display string `json:"display" bson:"display"` Directory string `json:"directory" bson:"directory"` Search string `json:"search" bson:"search"` SeasonNumber int `json:"season_number" bson:"season_number"` EpisodeNumber int `json:"episode_number" bson:"episode_number"` AbsoluteNumber int `json:"absolute_number" bson:"absolute_number"` SearchParams *SearchParams `json:"search_params" bson:"search_params"` Active bool `json:"active" bson:"active"` Downloaded bool `json:"downloaded" bson:"downloaded"` Completed bool `json:"completed" bson:"completed"` Skipped bool `json:"skipped" bson:"skipped"` Watched bool `json:"watched" bson:"watched"` Broken bool `json:"broken" bson:"broken"` Unwatched int `json:"unwatched" bson:"-"` ReleaseDate time.Time `json:"release_date" bson:"release_date"` Paths []Path `json:"paths" bson:"paths"` Cover string `json:"cover" bson:"-"` Background string `json:"background" bson:"-"` }
func NewEpisode ¶
func NewEpisode() *Episode
type Feed ¶ added in v0.2.0
type Feed struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` //CreatedAt time.Time `json:"created_at" bson:"created_at"` //UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` Name string `json:"name" bson:"name"` Url string `json:"url" bson:"url"` Source string `json:"source" bson:"source"` Type string `json:"type" bson:"type"` Active bool `json:"active" bson:"active"` Processed time.Time `json:"processed" bson:"processed"` }
type Medium ¶
type Medium struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` //CreatedAt time.Time `json:"created_at" bson:"created_at"` //UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` Type string `json:"type" bson:"_type"` Kind primitive.Symbol `json:"kind" bson:"kind"` Source string `json:"source" bson:"source"` SourceId string `json:"source_id" bson:"source_id"` Title string `json:"title" bson:"title"` Description string `json:"description" bson:"description"` Slug string `json:"slug" bson:"slug"` Text []string `json:"text" bson:"text"` Display string `json:"display" bson:"display"` Directory string `json:"directory" bson:"directory"` Search string `json:"search" bson:"search"` SearchParams *SearchParams `json:"search_params" bson:"search_params"` Active bool `json:"active" bson:"active"` Downloaded bool `json:"downloaded" bson:"downloaded"` Completed bool `json:"completed" bson:"completed"` Skipped bool `json:"skipped" bson:"skipped"` Watched bool `json:"watched" bson:"watched"` Broken bool `json:"broken" bson:"broken"` Favorite bool `json:"favorite" bson:"favorite"` Unwatched int `json:"unwatched" bson:"unwatched"` ReleaseDate time.Time `json:"release_date" bson:"release_date"` Paths []Path `json:"paths" bson:"paths"` Cover string `json:"cover" bson:"-"` Background string `json:"background" bson:"-"` SeriesId primitive.ObjectID `json:"series_id" bson:"series_id"` SeasonNumber int `json:"season_number" bson:"season_number"` EpisodeNumber int `json:"episode_number" bson:"episode_number"` AbsoluteNumber int `json:"absolute_number" bson:"absolute_number"` }
type Movie ¶ added in v0.2.0
type Movie struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` //CreatedAt time.Time `json:"created_at" bson:"created_at"` //UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` Type string `json:"type" bson:"_type"` Kind primitive.Symbol `json:"kind" bson:"kind"` Source string `json:"source" bson:"source"` SourceId string `json:"source_id" bson:"source_id"` Title string `json:"title" bson:"title"` Description string `json:"description" bson:"description"` Slug string `json:"slug" bson:"slug"` Text []string `json:"text" bson:"text"` Display string `json:"display" bson:"display"` Directory string `json:"directory" bson:"directory"` Search string `json:"search" bson:"search"` SearchParams *SearchParams `json:"search_params" bson:"search_params"` Active bool `json:"active" bson:"active"` Downloaded bool `json:"downloaded" bson:"downloaded"` Completed bool `json:"completed" bson:"completed"` Skipped bool `json:"skipped" bson:"skipped"` Watched bool `json:"watched" bson:"watched"` Broken bool `json:"broken" bson:"broken"` Favorite bool `json:"favorite" bson:"favorite"` ReleaseDate time.Time `json:"release_date" bson:"release_date"` Paths []Path `json:"paths" bson:"paths"` Cover string `json:"cover" bson:"-"` Background string `json:"background" bson:"-"` }
type Path ¶ added in v0.2.0
type Path struct { Id primitive.ObjectID `json:"id" bson:"_id"` Type primitive.Symbol `json:"type" bson:"type"` Remote string `json:"remote" bson:"remote"` Local string `json:"local" bson:"local"` Extension string `json:"extension" bson:"extension"` Size int `json:"size" bson:"size"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
type Release ¶
type Release struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` //CreatedAt time.Time `json:"created_at" bson:"created_at"` //UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` Type string `json:"type" bson:"type"` Source string `json:"source" bson:"source"` Raw string `json:"raw" bson:"raw"` Title string `json:"title" bson:"title"` Description string `json:"description" bson:"description"` Size string `json:"size" bson:"size"` View string `json:"view" bson:"view"` Download string `json:"download" bson:"download"` Infohash string `json:"infohash" bson:"infohash"` Name string `json:"name" bson:"name"` Season int `json:"season" bson:"season"` Episode int `json:"episode" bson:"episode"` Volume int `json:"volume" bson:"volume"` Checksum string `json:"checksum" bson:"checksum"` Group string `json:"group" bson:"group"` Author string `json:"author" bson:"author"` Verified bool `json:"verified" bson:"verified"` Widescreen bool `json:"widescreen" bson:"widescreen"` Uncensored bool `json:"uncensored" bson:"uncensored"` Bluray bool `json:"bluray" bson:"bluray"` Resolution string `json:"resolution" bson:"resolution"` Encoding string `json:"encoding" bson:"encoding"` Quality string `json:"quality" bson:"quality"` PublishedAt time.Time `json:"published_at" bson:"published_at"` }
func NewRelease ¶
func NewRelease() *Release
type SearchParams ¶ added in v0.2.0
type SearchParams struct { Type string `json:"type" bson:"type"` Verified bool `json:"verified" bson:"verified"` Group string `json:"group" bson:"group"` Author string `json:"author" bson:"author"` Resolution int `json:"resolution" bson:"resolution"` Source string `json:"source" bson:"source"` Uncensored bool `json:"uncensored" bson:"uncensored"` Bluray bool `json:"bluray" bson:"bluray"` }
func NewSearchParams ¶ added in v0.2.0
func NewSearchParams() *SearchParams
type Series ¶
type Series struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` //CreatedAt time.Time `json:"created_at" bson:"created_at"` //UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` Type string `json:"type" bson:"_type"` Kind primitive.Symbol `json:"kind" bson:"kind"` Source string `json:"source" bson:"source"` SourceId string `json:"source_id" bson:"source_id"` Title string `json:"title" bson:"title"` Description string `json:"description" bson:"description"` Slug string `json:"slug" bson:"slug"` Text []string `json:"text" bson:"text"` Display string `json:"display" bson:"display"` Directory string `json:"directory" bson:"directory"` Search string `json:"search" bson:"search"` SearchParams *SearchParams `json:"search_params" bson:"search_params"` Active bool `json:"active" bson:"active"` Downloaded bool `json:"downloaded" bson:"downloaded"` Completed bool `json:"completed" bson:"completed"` Skipped bool `json:"skipped" bson:"skipped"` Watched bool `json:"watched" bson:"watched"` Broken bool `json:"broken" bson:"broken"` Favorite bool `json:"favorite" bson:"favorite"` Unwatched int `json:"unwatched" bson:"-"` ReleaseDate time.Time `json:"release_date" bson:"release_date"` Paths []Path `json:"paths" bson:"paths"` Cover string `json:"cover" bson:"-"` Background string `json:"background" bson:"-"` CurrentSeason int `json:"currentSeason" bson:"-"` Seasons []int `json:"seasons" bson:"-"` Episodes []*Episode `json:"episodes" bson:"-"` Watches []*Watch `json:"watches" bson:"-"` }
type Server ¶
type Server struct { Router *gin.Engine Log *logrus.Entry // contains filtered or unexported fields }
func (*Server) DownloadsProcess ¶
func (s *Server) DownloadsProcess()
type Watch ¶
type Watch struct { grimoire.Document `bson:",inline"` // includes default model settings //ID primitive.ObjectID `json:"_id" bson:"_id,omitempty"` //CreatedAt time.Time `json:"created_at" bson:"created_at"` //UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` Username string `json:"username" bson:"username"` Player string `json:"player" bson:"player"` WatchedAt time.Time `json:"watched_at" bson:"watched_at"` MediumId primitive.ObjectID `json:"medium_id" bson:"medium_id"` Medium *Medium `json:"medium" bson:"-"` }
Source Files
¶
- app.go
- cache.go
- config.go
- cron.go
- models_connector.go
- models_download.go
- models_download_file.go
- models_download_queries.go
- models_episode.go
- models_episode_queries.go
- models_feed.go
- models_medium.go
- models_medium_queries.go
- models_movie.go
- models_movies_queries.go
- models_path.go
- models_release.go
- models_release_queries.go
- models_search_params.go
- models_series.go
- models_series_queries.go
- models_watch.go
- models_watch_queries.go
- routes.go
- routes_downloads.go
- routes_episodes.go
- routes_feeds.go
- routes_movies.go
- routes_releases.go
- routes_series.go
- routes_upcoming.go
- server.go
- server_watcher.go
Click to show internal directories.
Click to hide internal directories.