store

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) IsValid

func (s *LibraryStore) IsValid(libID string, serverTS int64) bool

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 (s *LibraryStore) SaveMixedContent(libID string, items []domain.ListItem, serverTS int64) error

func (*LibraryStore) SaveMovies

func (s *LibraryStore) SaveMovies(libID string, movies []*domain.MediaItem, serverTS int64) error

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

func (*LibraryStore) SaveShows

func (s *LibraryStore) SaveShows(libID string, shows []*domain.Show, serverTS int64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL