Documentation
¶
Index ¶
- func FileDBToFile(fileDB video.FileDB) video.File
- func ItemDBToItem(itemDB video.ItemDB) video.Item
- func MetaDBToMeta(metaDB video.MetaDB) video.Meta
- func NewStore(db *sqlx.DB, cdn *s3.S3, enc encoder.Repo, conf *creator.Config) creator.VideoRepo
- func PlaylistDBToPlaylist(playlistDB playlist.PlaylistDB) playlist.Playlist
- func PresetDBToPreset(presetDB video.PresetDB) video.Preset
- func SeriesDBToSeries(seriesDB series.SeriesDB) series.Series
- type Store
- func (s *Store) DeleteItem(ctx context.Context, videoID, userID int) error
- func (s *Store) DeleteItemPermanently(ctx context.Context, videoID int) error
- func (s *Store) GetItem(ctx context.Context, videoID int) (video.ItemDB, error)
- func (s *Store) ListByCalendarMonth(ctx context.Context, year, month int) ([]video.MetaCal, error)
- func (s *Store) ListMeta(ctx context.Context) ([]video.MetaDB, error)
- func (s *Store) ListMetaByUser(ctx context.Context, userID int) ([]video.MetaDB, error)
- func (s *Store) NewItem(ctx context.Context, v video.New) (int, error)
- func (s *Store) OfSeries(ctx context.Context, seriesID int) ([]video.MetaDB, error)
- func (s *Store) Search(ctx context.Context, query string) ([]video.MetaDB, error)
- func (s *Store) UpdateMeta(ctx context.Context, m video.Meta) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlaylistDBToPlaylist ¶ added in v0.9.6
func PlaylistDBToPlaylist(playlistDB playlist.PlaylistDB) playlist.Playlist
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store encapsulates our dependencies
func (*Store) DeleteItem ¶ added in v0.7.0
DeleteItem Removes a video. The video will still be present in the database, files and visible to users with high enough access
func (*Store) DeleteItemPermanently ¶ added in v0.7.0
DeleteItemPermanently removes a video entirely, including the associated video files
func (*Store) ListByCalendarMonth ¶
ListByCalendarMonth returns a list of VideoMeta's for a given month/year
func (*Store) ListMetaByUser ¶
ListMetaByUser returns a list of VideoMeta's for a given user
Click to show internal directories.
Click to hide internal directories.