Documentation ¶
Index ¶
- func NewPlaylistPostgresRepo(db *sqlx.DB) domain.PlaylistRepo
- type PlaylistRepo
- func (table PlaylistRepo) AddToPlaylist(userId int64, playlistId int64, trackId int64) error
- func (table PlaylistRepo) Create(userId int64, playlist *playlistProto.Playlist) error
- func (table PlaylistRepo) Delete(userId int64, playlistId int64) error
- func (table PlaylistRepo) GetAll() ([]*playlistProto.Playlist, error)
- func (table PlaylistRepo) GetAllOfCurrentUser(userId int64) ([]*playlistProto.Playlist, error)
- func (table PlaylistRepo) GetLastId() (int64, error)
- func (table PlaylistRepo) GetLastIdOfCurrentUser(userId int64) (int64, error)
- func (table PlaylistRepo) GetSize() (int64, error)
- func (table PlaylistRepo) GetSizeOfCurrentUser(userId int64) (int64, error)
- func (table PlaylistRepo) RemoveFromPlaylist(userId int64, playlistId int64, trackId int64) error
- func (table PlaylistRepo) SelectByIDOfCurrentUser(userId int64, playlistId int64) (*playlistProto.Playlist, error)
- func (table PlaylistRepo) SelectById(playlistId int64) (*playlistProto.Playlist, error)
- func (table PlaylistRepo) Update(userId int64, playlist *playlistProto.Playlist) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlaylistPostgresRepo ¶
func NewPlaylistPostgresRepo(db *sqlx.DB) domain.PlaylistRepo
Types ¶
type PlaylistRepo ¶
func (PlaylistRepo) AddToPlaylist ¶
func (table PlaylistRepo) AddToPlaylist(userId int64, playlistId int64, trackId int64) error
func (PlaylistRepo) Create ¶
func (table PlaylistRepo) Create(userId int64, playlist *playlistProto.Playlist) error
func (PlaylistRepo) GetAll ¶
func (table PlaylistRepo) GetAll() ([]*playlistProto.Playlist, error)
func (PlaylistRepo) GetAllOfCurrentUser ¶
func (table PlaylistRepo) GetAllOfCurrentUser(userId int64) ([]*playlistProto.Playlist, error)
func (PlaylistRepo) GetLastId ¶
func (table PlaylistRepo) GetLastId() (int64, error)
func (PlaylistRepo) GetLastIdOfCurrentUser ¶
func (table PlaylistRepo) GetLastIdOfCurrentUser(userId int64) (int64, error)
func (PlaylistRepo) GetSize ¶
func (table PlaylistRepo) GetSize() (int64, error)
func (PlaylistRepo) GetSizeOfCurrentUser ¶
func (table PlaylistRepo) GetSizeOfCurrentUser(userId int64) (int64, error)
func (PlaylistRepo) RemoveFromPlaylist ¶
func (table PlaylistRepo) RemoveFromPlaylist(userId int64, playlistId int64, trackId int64) error
func (PlaylistRepo) SelectByIDOfCurrentUser ¶
func (table PlaylistRepo) SelectByIDOfCurrentUser(userId int64, playlistId int64) (*playlistProto.Playlist, error)
func (PlaylistRepo) SelectById ¶
func (table PlaylistRepo) SelectById(playlistId int64) (*playlistProto.Playlist, error)
func (PlaylistRepo) Update ¶
func (table PlaylistRepo) Update(userId int64, playlist *playlistProto.Playlist) error
Click to show internal directories.
Click to hide internal directories.