Documentation ¶
Index ¶
- type GrpcAgent
- func (agent GrpcAgent) AddToPlaylist(userId int64, playlistId int64, trackId int64) error
- func (agent GrpcAgent) Create(userId int64, playlist *playlistProto.Playlist) error
- func (agent GrpcAgent) Delete(userId int64, playlistId int64) error
- func (agent GrpcAgent) GetAll() ([]*playlistProto.Playlist, error)
- func (agent GrpcAgent) GetAllOfCurrentUser(userId int64) ([]*playlistProto.Playlist, error)
- func (agent GrpcAgent) GetById(playlistId int64) (*playlistProto.Playlist, error)
- func (agent GrpcAgent) GetByIdOfCurrentUser(userId int64, playlistId int64) (*playlistProto.Playlist, error)
- func (agent GrpcAgent) GetLastId() (int64, error)
- func (agent GrpcAgent) GetLastIdOfCurrentUser(userId int64) (int64, error)
- func (agent GrpcAgent) GetSize() (int64, error)
- func (agent GrpcAgent) GetSizeOfCurrentUser(userId int64) (int64, error)
- func (agent GrpcAgent) RemoveFromPlaylist(userId int64, playlistId int64, trackId int64) error
- func (agent GrpcAgent) Update(userId int64, playlist *playlistProto.Playlist) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcAgent ¶
type GrpcAgent struct {
PlaylistGrpc playlistProto.PlaylistUseCaseClient
}
func MakeAgent ¶
func MakeAgent(gRPC playlistProto.PlaylistUseCaseClient) GrpcAgent
func (GrpcAgent) AddToPlaylist ¶
func (GrpcAgent) Create ¶
func (agent GrpcAgent) Create(userId int64, playlist *playlistProto.Playlist) error
func (GrpcAgent) GetAllOfCurrentUser ¶
func (agent GrpcAgent) GetAllOfCurrentUser(userId int64) ([]*playlistProto.Playlist, error)
func (GrpcAgent) GetById ¶
func (agent GrpcAgent) GetById(playlistId int64) (*playlistProto.Playlist, error)
func (GrpcAgent) GetByIdOfCurrentUser ¶
func (GrpcAgent) GetLastIdOfCurrentUser ¶
func (GrpcAgent) GetSizeOfCurrentUser ¶
func (GrpcAgent) RemoveFromPlaylist ¶
Click to show internal directories.
Click to hide internal directories.