Documentation
¶
Index ¶
- type LibraryStore
- func (s *LibraryStore) Close() error
- func (s *LibraryStore) GetAllEpisodes(libID string) ([]*domain.MediaItem, bool)
- func (s *LibraryStore) GetEpisodes(libID, showID, seasonID string) ([]*domain.MediaItem, bool)
- func (s *LibraryStore) GetLibraries() ([]domain.Library, bool)
- func (s *LibraryStore) GetMixedContent(libID string) ([]domain.ListItem, bool)
- func (s *LibraryStore) GetMovies(libID string) ([]*domain.MediaItem, bool)
- func (s *LibraryStore) GetPlaylistItems(playlistID string) ([]*domain.MediaItem, bool)
- func (s *LibraryStore) GetPlaylists() ([]*domain.Playlist, bool)
- func (s *LibraryStore) GetQueueItems() ([]*domain.MediaItem, bool)
- func (s *LibraryStore) GetSeasons(libID, showID string) ([]*domain.Season, bool)
- func (s *LibraryStore) GetShows(libID string) ([]*domain.Show, bool)
- func (s *LibraryStore) InvalidateAll()
- func (s *LibraryStore) InvalidateLibrary(libID string)
- func (s *LibraryStore) InvalidatePlaylistItems(playlistID string)
- func (s *LibraryStore) InvalidatePlaylists()
- func (s *LibraryStore) InvalidateQueue()
- func (s *LibraryStore) InvalidateSeason(libID, showID, seasonID string)
- func (s *LibraryStore) InvalidateShow(libID, showID string)
- func (s *LibraryStore) IsValid(libID string, serverTS int64) bool
- func (s *LibraryStore) SaveEpisodes(libID, showID, seasonID string, episodes []*domain.MediaItem) error
- func (s *LibraryStore) SaveLibraries(libs []domain.Library) error
- func (s *LibraryStore) SaveMixedContent(libID string, items []domain.ListItem, serverTS int64) error
- func (s *LibraryStore) SaveMovies(libID string, movies []*domain.MediaItem, serverTS int64) error
- func (s *LibraryStore) SavePlaylistItems(playlistID string, items []*domain.MediaItem) error
- func (s *LibraryStore) SavePlaylists(playlists []*domain.Playlist) error
- func (s *LibraryStore) SaveQueueItems(items []*domain.MediaItem) error
- func (s *LibraryStore) SaveSeasons(libID, showID string, seasons []*domain.Season) error
- func (s *LibraryStore) SaveShows(libID string, shows []*domain.Show, serverTS int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LibraryStore ¶
type LibraryStore struct {
// contains filtered or unexported fields
}
LibraryStore implements domain.Store using BoltDB.
func NewLibraryStore ¶
func NewLibraryStore(baseCacheDir, serverURL string) (*LibraryStore, error)
func (*LibraryStore) Close ¶
func (s *LibraryStore) Close() error
func (*LibraryStore) GetAllEpisodes ¶ added in v1.0.3
func (s *LibraryStore) GetAllEpisodes(libID string) ([]*domain.MediaItem, bool)
func (*LibraryStore) GetEpisodes ¶
func (s *LibraryStore) GetEpisodes(libID, showID, seasonID string) ([]*domain.MediaItem, bool)
func (*LibraryStore) GetLibraries ¶
func (s *LibraryStore) GetLibraries() ([]domain.Library, bool)
func (*LibraryStore) GetMixedContent ¶
func (s *LibraryStore) GetMixedContent(libID string) ([]domain.ListItem, bool)
func (*LibraryStore) GetMovies ¶
func (s *LibraryStore) GetMovies(libID string) ([]*domain.MediaItem, bool)
func (*LibraryStore) GetPlaylistItems ¶
func (s *LibraryStore) GetPlaylistItems(playlistID string) ([]*domain.MediaItem, bool)
func (*LibraryStore) GetPlaylists ¶
func (s *LibraryStore) GetPlaylists() ([]*domain.Playlist, bool)
func (*LibraryStore) GetQueueItems ¶
func (s *LibraryStore) GetQueueItems() ([]*domain.MediaItem, bool)
func (*LibraryStore) GetSeasons ¶
func (s *LibraryStore) GetSeasons(libID, showID string) ([]*domain.Season, bool)
func (*LibraryStore) GetShows ¶
func (s *LibraryStore) GetShows(libID string) ([]*domain.Show, bool)
func (*LibraryStore) InvalidateAll ¶
func (s *LibraryStore) InvalidateAll()
func (*LibraryStore) InvalidateLibrary ¶
func (s *LibraryStore) InvalidateLibrary(libID string)
func (*LibraryStore) InvalidatePlaylistItems ¶
func (s *LibraryStore) InvalidatePlaylistItems(playlistID string)
func (*LibraryStore) InvalidatePlaylists ¶
func (s *LibraryStore) InvalidatePlaylists()
func (*LibraryStore) InvalidateQueue ¶
func (s *LibraryStore) InvalidateQueue()
func (*LibraryStore) InvalidateSeason ¶
func (s *LibraryStore) InvalidateSeason(libID, showID, seasonID string)
InvalidateSeason wipes a season's episodes
func (*LibraryStore) InvalidateShow ¶
func (s *LibraryStore) InvalidateShow(libID, showID string)
InvalidateShow wipes a show's seasons + ALL episodes for that show
func (*LibraryStore) SaveEpisodes ¶
func (s *LibraryStore) SaveEpisodes(libID, showID, seasonID string, episodes []*domain.MediaItem) error
func (*LibraryStore) SaveLibraries ¶
func (s *LibraryStore) SaveLibraries(libs []domain.Library) error
func (*LibraryStore) SaveMixedContent ¶
func (*LibraryStore) SaveMovies ¶
func (*LibraryStore) SavePlaylistItems ¶
func (s *LibraryStore) SavePlaylistItems(playlistID string, items []*domain.MediaItem) error
func (*LibraryStore) SavePlaylists ¶
func (s *LibraryStore) SavePlaylists(playlists []*domain.Playlist) error
func (*LibraryStore) SaveQueueItems ¶
func (s *LibraryStore) SaveQueueItems(items []*domain.MediaItem) error
func (*LibraryStore) SaveSeasons ¶
func (s *LibraryStore) SaveSeasons(libID, showID string, seasons []*domain.Season) error
Click to show internal directories.
Click to hide internal directories.