Documentation ¶
Index ¶
- func NewTrackPostgresRepo(db *sqlx.DB) domain.TrackRepo
- type TrackRepo
- func (table TrackRepo) AddToFavorites(trackId int64, userId int64) error
- func (table TrackRepo) CountPopularTrackOfWeek() (bool, error)
- func (table TrackRepo) Create(dom *trackProto.Track) error
- func (table TrackRepo) Delete(id int64) error
- func (table TrackRepo) GetAll() ([]*trackProto.Track, error)
- func (table TrackRepo) GetFavorites(userId int64) ([]*trackProto.Track, error)
- func (table TrackRepo) GetLastId() (int64, error)
- func (table TrackRepo) GetPopular() ([]*trackProto.Track, error)
- func (table TrackRepo) GetPopularTrackOfWeekTop20() ([]*trackProto.Track, error)
- func (table TrackRepo) GetPopularTracksFromArtist(artistId int64) ([]*trackProto.Track, error)
- func (table TrackRepo) GetSize() (int64, error)
- func (table TrackRepo) GetTracksFromAlbum(albumId int64) ([]*trackProto.Track, error)
- func (table TrackRepo) GetTracksFromPlaylist(playlistId int64) ([]*trackProto.Track, error)
- func (table TrackRepo) Like(trackId int64, userId int64) error
- func (table TrackRepo) LikeCheckByUser(trackId int64, userId int64) (bool, error)
- func (table TrackRepo) Listen(trackId int64) error
- func (table TrackRepo) RemoveFromFavorites(trackId int64, userId int64) error
- func (table TrackRepo) SearchByTitle(title string) ([]*trackProto.Track, error)
- func (table TrackRepo) SelectByID(id int64) (*trackProto.Track, error)
- func (table TrackRepo) Update(dom *trackProto.Track) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TrackRepo ¶
func (TrackRepo) AddToFavorites ¶
func (TrackRepo) CountPopularTrackOfWeek ¶
func (TrackRepo) GetFavorites ¶
func (table TrackRepo) GetFavorites(userId int64) ([]*trackProto.Track, error)
func (TrackRepo) GetPopular ¶
func (table TrackRepo) GetPopular() ([]*trackProto.Track, error)
func (TrackRepo) GetPopularTrackOfWeekTop20 ¶
func (table TrackRepo) GetPopularTrackOfWeekTop20() ([]*trackProto.Track, error)
func (TrackRepo) GetPopularTracksFromArtist ¶
func (table TrackRepo) GetPopularTracksFromArtist(artistId int64) ([]*trackProto.Track, error)
func (TrackRepo) GetTracksFromAlbum ¶
func (table TrackRepo) GetTracksFromAlbum(albumId int64) ([]*trackProto.Track, error)
func (TrackRepo) GetTracksFromPlaylist ¶
func (table TrackRepo) GetTracksFromPlaylist(playlistId int64) ([]*trackProto.Track, error)
func (TrackRepo) LikeCheckByUser ¶
func (TrackRepo) RemoveFromFavorites ¶
func (TrackRepo) SearchByTitle ¶
func (table TrackRepo) SearchByTitle(title string) ([]*trackProto.Track, error)
func (TrackRepo) SelectByID ¶
func (table TrackRepo) SelectByID(id int64) (*trackProto.Track, error)
Click to show internal directories.
Click to hide internal directories.