Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFLANG = "de-DE" WATCHLIST = "watchlist" )
Variables ¶
View Source
var ( InvalidCredentials = fmt.Errorf("invalid login credentials. Please try again") NoSecretFound = fmt.Errorf("no secret found") )
Functions ¶
func URLEncoded ¶
Types ¶
type Config ¶
type Config struct { Port int Mode string TMDBImageDir string TMDBImageURL string TMDBApiKey string TargetDir string SQLDebug bool DataBase string WebDav bool Watchdirectory string ScanDirectories []string ServerURL string Player string UseAuthentication bool Secret string InitialAdminPassword string }
type MockHttpClient ¶
type MockTMDBClient ¶
type MockTMDBClient struct{}
func (*MockTMDBClient) GetMovieImages ¶
func (m *MockTMDBClient) GetMovieImages(id int, opts map[string]string) (*tmdb.MovieImages, error)
func (*MockTMDBClient) GetMovieInfo ¶
func (m *MockTMDBClient) GetMovieInfo(id int, opts map[string]string) (*tmdb.Movie, error)
func (*MockTMDBClient) SearchMovie ¶
func (m *MockTMDBClient) SearchMovie(s string, opts map[string]string) (*tmdb.MovieSearchResults, error)
type Query ¶
type Query struct { Orderby string `form:"orderby"` Qtitel string `form:"title"` Alpha string `form:"alpha"` Genre int64 `form:"genre"` Crew int64 `form:"crew"` Person int64 `form:"person"` Cast int64 `form:"cast"` Country string `form:"country"` LastScanned string `form:"last_scanned"` Limit int64 `form:"limit,default=30"` Offset int64 `form:"offset,default=0"` Show string `form:"show"` }
Query movie query parameter
type Service ¶
type Service struct { Router *gin.Engine DB *gorm.DB Token *models.Token Config *Config WorkerPool *workerpool.WorkerPool TMDBClient models.TMDBClients }
Service mal sehen
var S Service
type UpdateMovie ¶
type UpdateMovie struct { ID int64 `json:"id"` Title string `json:"title" binding:"required"` OrgName string `json:"org_name"` //Multiplechoice MovieSearchResults `json:"multiplechoice"` //File File IsTv bool `json:"is_tv"` Rating int `json:"rating"` Watchlist bool `json:"watchlist"` Meta *models.TMDBMovie `json:"meta"` LastScanned time.Time }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.