Documentation ¶
Index ¶
- type GrpcAgent
- func (agent GrpcAgent) AddToFavorites(userId int64, albumId int64) error
- func (agent GrpcAgent) Create(artist *artistProto.Artist) error
- func (agent GrpcAgent) Delete(id int64) error
- func (agent GrpcAgent) GetAll() ([]*artistProto.Artist, error)
- func (agent GrpcAgent) GetById(id int64) (*artistProto.Artist, error)
- func (agent GrpcAgent) GetFavorites(userId int64) ([]*artistProto.Artist, error)
- func (agent GrpcAgent) GetLastId() (int64, error)
- func (agent GrpcAgent) GetPopular() ([]*artistProto.Artist, error)
- func (agent GrpcAgent) GetSize() (int64, error)
- func (agent GrpcAgent) Like(userId int64, id int64) error
- func (agent GrpcAgent) LikeCheckByUser(userId int64, id int64) (bool, error)
- func (agent GrpcAgent) RemoveFromFavorites(userId int64, albumId int64) error
- func (agent GrpcAgent) SearchByName(name string) ([]*artistProto.Artist, error)
- func (agent GrpcAgent) Update(artist *artistProto.Artist) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcAgent ¶
type GrpcAgent struct {
ArtistGrpc artistProto.ArtistUseCaseClient
}
func MakeAgent ¶
func MakeAgent(gRPC artistProto.ArtistUseCaseClient) GrpcAgent
func (GrpcAgent) AddToFavorites ¶
func (GrpcAgent) GetFavorites ¶
func (agent GrpcAgent) GetFavorites(userId int64) ([]*artistProto.Artist, error)
func (GrpcAgent) GetPopular ¶
func (agent GrpcAgent) GetPopular() ([]*artistProto.Artist, error)
func (GrpcAgent) LikeCheckByUser ¶
func (GrpcAgent) RemoveFromFavorites ¶
func (GrpcAgent) SearchByName ¶
func (agent GrpcAgent) SearchByName(name string) ([]*artistProto.Artist, error)
Click to show internal directories.
Click to hide internal directories.