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