Documentation ¶
Index ¶
- func NewAlbumPostgresRepo(db *sqlx.DB) domain.AlbumRepo
- type AlbumRepo
- func (table AlbumRepo) AddToFavorites(albumId int64, userId int64) error
- func (table AlbumRepo) CountPopularAlbumOfWeek() (bool, error)
- func (table AlbumRepo) Create(dom *albumProto.Album) error
- func (table AlbumRepo) Delete(id int64) error
- func (table AlbumRepo) GetAlbumsFromArtist(artistId int64) ([]*albumProto.Album, error)
- func (table AlbumRepo) GetAll() ([]*albumProto.Album, error)
- func (table AlbumRepo) GetFavorites(userId int64) ([]*albumProto.Album, error)
- func (table AlbumRepo) GetLastId() (int64, error)
- func (table AlbumRepo) GetPopular() ([]*albumProto.Album, error)
- func (table AlbumRepo) GetPopularAlbumOfWeekTop20() ([]*albumProto.Album, error)
- func (table AlbumRepo) GetSize() (int64, error)
- func (table AlbumRepo) Like(albumId int64, userId int64) error
- func (table AlbumRepo) LikeCheckByUser(albumId int64, userId int64) (bool, error)
- func (table AlbumRepo) Listen(trackId int64) error
- func (table AlbumRepo) RemoveFromFavorites(albumId int64, userId int64) error
- func (table AlbumRepo) SearchByTitle(title string) ([]*albumProto.Album, error)
- func (table AlbumRepo) SelectByID(id int64) (*albumProto.Album, error)
- func (table AlbumRepo) Update(dom *albumProto.Album) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlbumRepo ¶
func (AlbumRepo) AddToFavorites ¶
func (AlbumRepo) CountPopularAlbumOfWeek ¶
func (AlbumRepo) Create ¶
func (table AlbumRepo) Create(dom *albumProto.Album) error
----------------------------------------------------------------------
func (AlbumRepo) GetAlbumsFromArtist ¶
func (table AlbumRepo) GetAlbumsFromArtist(artistId int64) ([]*albumProto.Album, error)
func (AlbumRepo) GetFavorites ¶
func (table AlbumRepo) GetFavorites(userId int64) ([]*albumProto.Album, error)
func (AlbumRepo) GetPopular ¶
func (table AlbumRepo) GetPopular() ([]*albumProto.Album, error)
func (AlbumRepo) GetPopularAlbumOfWeekTop20 ¶
func (table AlbumRepo) GetPopularAlbumOfWeekTop20() ([]*albumProto.Album, error)
func (AlbumRepo) LikeCheckByUser ¶
func (AlbumRepo) RemoveFromFavorites ¶
func (AlbumRepo) SearchByTitle ¶
func (table AlbumRepo) SearchByTitle(title string) ([]*albumProto.Album, error)
func (AlbumRepo) SelectByID ¶
func (table AlbumRepo) SelectByID(id int64) (*albumProto.Album, error)
Click to show internal directories.
Click to hide internal directories.