Documentation
¶
Index ¶
- type Service
- func (s *Service) ContinueWatching(limit int) []*domain.MediaItem
- func (s *Service) FetchContinueWatching(ctx context.Context) ([]*domain.MediaItem, error)
- func (s *Service) FetchEpisodes(ctx context.Context, libID, showID, seasonID string) ([]*domain.MediaItem, error)
- func (s *Service) FetchLibraries(ctx context.Context) ([]domain.Library, error)
- func (s *Service) FetchMixedContent(ctx context.Context, libID string, onProgress domain.ProgressFunc) ([]domain.ListItem, error)
- func (s *Service) FetchMovies(ctx context.Context, libID string, onProgress domain.ProgressFunc) ([]*domain.MediaItem, error)
- func (s *Service) FetchSeasons(ctx context.Context, libID, showID string) ([]*domain.Season, error)
- func (s *Service) FetchShows(ctx context.Context, libID string, onProgress domain.ProgressFunc) ([]*domain.Show, error)
- func (s *Service) InvalidateAll()
- func (s *Service) InvalidateLibrary(libID string)
- func (s *Service) InvalidateSeason(libID, showID, seasonID string)
- func (s *Service) InvalidateShow(libID, showID string)
- func (s *Service) RecentlyAdded(limit int) []domain.ListItem
- func (s *Service) SmartFiltered(filter string, limit int) []*domain.MediaItem
- func (s *Service) SyncLibrary(ctx context.Context, lib domain.Library, onProgress domain.ProgressFunc) (domain.SyncResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service orchestrates library client + store operations.
func NewService ¶
NewService creates a new library service.
func (*Service) ContinueWatching ¶
ContinueWatching returns cached playable items that have progress.
func (*Service) FetchContinueWatching ¶ added in v1.1.0
func (*Service) FetchEpisodes ¶
func (*Service) FetchLibraries ¶
func (*Service) FetchMixedContent ¶
func (*Service) FetchMovies ¶
func (*Service) FetchSeasons ¶
func (*Service) FetchShows ¶
func (*Service) InvalidateAll ¶
func (s *Service) InvalidateAll()
func (*Service) InvalidateLibrary ¶
func (*Service) InvalidateSeason ¶
func (*Service) InvalidateShow ¶
func (*Service) RecentlyAdded ¶
RecentlyAdded returns cached items (movies and shows) ordered by AddedAt descending.
func (*Service) SmartFiltered ¶
SmartFiltered returns cached playable items matching a named local filter.
func (*Service) SyncLibrary ¶
func (s *Service) SyncLibrary( ctx context.Context, lib domain.Library, onProgress domain.ProgressFunc, ) (domain.SyncResult, error)
Click to show internal directories.
Click to hide internal directories.