Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppConfiguration = &models.AppConfiguration{}
AppConfiguration app configuration global
View Source
var Db = &Storage{}
Db database session
View Source
var DbDir = ""
DbDir application configuration directory
Functions ¶
func GetAllMovies ¶ added in v0.2.0
GetAllMovies get all movies
func GetAllShows ¶ added in v0.1.0
GetAllShows get all shows
func SortEpisodes ¶ added in v0.1.0
SortEpisodes sort array of episodes
Types ¶
type Collections ¶
Collections All collections available
type MovieStorage ¶ added in v0.2.0
MovieStorage storage methods for Movies
func NewMovieStorage ¶ added in v0.2.0
func NewMovieStorage(movie *models.Movie) *MovieStorage
NewMovieStorage create new MovieStorage
func (*MovieStorage) Save ¶ added in v0.2.0
func (m *MovieStorage) Save() (*MovieStorage, error)
Save save on database
type ShowStorage ¶
ShowStorage storage methods for shows
func NewShowStorage ¶
func NewShowStorage(show *models.Show) *ShowStorage
NewShowStorage create new ShowStorage
func (*ShowStorage) AddOrUpdateEpisode ¶
func (s *ShowStorage) AddOrUpdateEpisode(*models.TorrentInfo) (*ShowStorage, error)
AddOrUpdateEpisode Add or update an episode if already exist
type Storage ¶
type Storage struct { Directory string Driver *scribble.Driver Collections *Collections }
Storage manage storage
func (*Storage) AddMediaDir ¶ added in v0.1.2
AddMediaDir add a new media directory
func (*Storage) GetAppConfiguration ¶
func (s *Storage) GetAppConfiguration(configuration *models.AppConfiguration) (*models.AppConfiguration, error)
GetAppConfiguration get couchness configuration
Click to show internal directories.
Click to hide internal directories.