Documentation
¶
Index ¶
- func NewStore(db *sqlx.DB) creator.PlaylistRepo
- type Store
- func (m *Store) AddVideo(ctx context.Context, playlistID, videoID int) error
- func (m *Store) AddVideos(ctx context.Context, playlistID int, videoIDs []int) error
- func (m *Store) DeletePlaylist(_ context.Context, _ int) error
- func (m *Store) DeleteVideo(ctx context.Context, playlistID, videoID int) error
- func (m *Store) GetPlaylist(ctx context.Context, playlistID int) (playlist.PlaylistDB, error)
- func (m *Store) ListPlaylists(ctx context.Context) ([]playlist.PlaylistDB, error)
- func (m *Store) NewPlaylist(ctx context.Context, p playlist.New) (int, error)
- func (m *Store) UpdatePlaylist(ctx context.Context, p playlist.Meta, videoIDs []int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store contains our dependency
func (*Store) DeletePlaylist ¶ added in v0.9.5
func (*Store) DeleteVideo ¶
DeleteVideo deletes a single video from a playlist
func (*Store) GetPlaylist ¶ added in v0.9.5
GetPlaylist returns a playlist and it's video's
func (*Store) ListPlaylists ¶ added in v0.9.5
ListPlaylists lists all playlists metadata
func (*Store) NewPlaylist ¶ added in v0.9.5
NewPlaylist makes a playlist item
Click to show internal directories.
Click to hide internal directories.