TrackGrpcAgent

package
v0.0.0-...-704a905 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 (agent GrpcAgent) AddToFavorites(userId int64, trackId int64) error

func (GrpcAgent) Create

func (agent GrpcAgent) Create(album *trackProto.Track) error

func (GrpcAgent) Delete

func (agent GrpcAgent) Delete(id int64) error

func (GrpcAgent) GetAll

func (agent GrpcAgent) GetAll() ([]*trackProto.Track, error)

func (GrpcAgent) GetById

func (agent GrpcAgent) GetById(id int64) (*trackProto.Track, error)

func (GrpcAgent) GetFavorites

func (agent GrpcAgent) GetFavorites(userId int64) ([]*trackProto.Track, error)

func (GrpcAgent) GetLastId

func (agent GrpcAgent) GetLastId() (int64, 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) GetSize

func (agent GrpcAgent) GetSize() (int64, 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) Like

func (agent GrpcAgent) Like(userId int64, id int64) error

func (GrpcAgent) LikeCheckByUser

func (agent GrpcAgent) LikeCheckByUser(userId int64, id int64) (bool, error)

func (GrpcAgent) Listen

func (agent GrpcAgent) Listen(id int64) error

func (GrpcAgent) RemoveFromFavorites

func (agent GrpcAgent) RemoveFromFavorites(userId int64, trackId int64) error

func (GrpcAgent) SearchByTitle

func (agent GrpcAgent) SearchByTitle(title string) ([]*trackProto.Track, error)

func (GrpcAgent) Update

func (agent GrpcAgent) Update(album *trackProto.Track) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL