Documentation ¶
Index ¶
- type GrpcAgent
- func (agent GrpcAgent) AddToFavorites(userId int64, trackId int64) error
- func (agent GrpcAgent) Create(album *trackProto.Track) error
- func (agent GrpcAgent) Delete(id int64) error
- func (agent GrpcAgent) GetAll() ([]*trackProto.Track, error)
- func (agent GrpcAgent) GetById(id int64) (*trackProto.Track, error)
- func (agent GrpcAgent) GetFavorites(userId int64) ([]*trackProto.Track, error)
- func (agent GrpcAgent) GetLastId() (int64, error)
- func (agent GrpcAgent) GetPopular() ([]*trackProto.Track, error)
- func (agent GrpcAgent) GetPopularTrackOfWeekTop20() ([]*trackProto.Track, error)
- func (agent GrpcAgent) GetPopularTracksFromArtist(artistId int64) ([]*trackProto.Track, error)
- func (agent GrpcAgent) GetSize() (int64, error)
- func (agent GrpcAgent) GetTracksFromAlbum(id int64) ([]*trackProto.Track, error)
- func (agent GrpcAgent) GetTracksFromPlaylist(playlistId int64) ([]*trackProto.Track, error)
- func (agent GrpcAgent) Like(userId int64, id int64) error
- func (agent GrpcAgent) LikeCheckByUser(userId int64, id int64) (bool, error)
- func (agent GrpcAgent) Listen(id int64) error
- func (agent GrpcAgent) RemoveFromFavorites(userId int64, trackId int64) error
- func (agent GrpcAgent) SearchByTitle(title string) ([]*trackProto.Track, error)
- func (agent GrpcAgent) Update(album *trackProto.Track) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcAgent ¶
type GrpcAgent struct {
TrackGrpc trackProto.TrackUseCaseClient
}
func MakeAgent ¶
func MakeAgent(gRPC trackProto.TrackUseCaseClient) GrpcAgent
func (GrpcAgent) AddToFavorites ¶
func (GrpcAgent) GetFavorites ¶
func (agent GrpcAgent) GetFavorites(userId int64) ([]*trackProto.Track, error)
func (GrpcAgent) GetPopular ¶
func (agent GrpcAgent) GetPopular() ([]*trackProto.Track, error)
func (GrpcAgent) GetPopularTrackOfWeekTop20 ¶
func (agent GrpcAgent) GetPopularTrackOfWeekTop20() ([]*trackProto.Track, error)
func (GrpcAgent) GetPopularTracksFromArtist ¶
func (agent GrpcAgent) GetPopularTracksFromArtist(artistId int64) ([]*trackProto.Track, error)
func (GrpcAgent) GetTracksFromAlbum ¶
func (agent GrpcAgent) GetTracksFromAlbum(id int64) ([]*trackProto.Track, error)
func (GrpcAgent) GetTracksFromPlaylist ¶
func (agent GrpcAgent) GetTracksFromPlaylist(playlistId int64) ([]*trackProto.Track, error)
func (GrpcAgent) LikeCheckByUser ¶
func (GrpcAgent) RemoveFromFavorites ¶
func (GrpcAgent) SearchByTitle ¶
func (agent GrpcAgent) SearchByTitle(title string) ([]*trackProto.Track, error)
Click to show internal directories.
Click to hide internal directories.