ArtistGrpcAgent

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 {
	ArtistGrpc artistProto.ArtistUseCaseClient
}

func (GrpcAgent) AddToFavorites

func (agent GrpcAgent) AddToFavorites(userId int64, albumId int64) error

func (GrpcAgent) Create

func (agent GrpcAgent) Create(artist *artistProto.Artist) error

func (GrpcAgent) Delete

func (agent GrpcAgent) Delete(id int64) error

func (GrpcAgent) GetAll

func (agent GrpcAgent) GetAll() ([]*artistProto.Artist, error)

func (GrpcAgent) GetById

func (agent GrpcAgent) GetById(id int64) (*artistProto.Artist, error)

func (GrpcAgent) GetFavorites

func (agent GrpcAgent) GetFavorites(userId int64) ([]*artistProto.Artist, error)

func (GrpcAgent) GetLastId

func (agent GrpcAgent) GetLastId() (int64, error)

func (GrpcAgent) GetPopular

func (agent GrpcAgent) GetPopular() ([]*artistProto.Artist, error)

func (GrpcAgent) GetSize

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

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

func (GrpcAgent) SearchByName

func (agent GrpcAgent) SearchByName(name string) ([]*artistProto.Artist, error)

func (GrpcAgent) Update

func (agent GrpcAgent) Update(artist *artistProto.Artist) error

Jump to

Keyboard shortcuts

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