PlaylistGrpcAgent

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 {
	PlaylistGrpc playlistProto.PlaylistUseCaseClient
}

func (GrpcAgent) AddToPlaylist

func (agent GrpcAgent) AddToPlaylist(userId int64, playlistId int64, trackId int64) error

func (GrpcAgent) Create

func (agent GrpcAgent) Create(userId int64, playlist *playlistProto.Playlist) error

func (GrpcAgent) Delete

func (agent GrpcAgent) Delete(userId int64, playlistId int64) error

func (GrpcAgent) GetAll

func (agent GrpcAgent) GetAll() ([]*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 (agent GrpcAgent) GetByIdOfCurrentUser(userId int64, playlistId int64) (*playlistProto.Playlist, error)

func (GrpcAgent) GetLastId

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

func (GrpcAgent) GetLastIdOfCurrentUser

func (agent GrpcAgent) GetLastIdOfCurrentUser(userId int64) (int64, error)

func (GrpcAgent) GetSize

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

func (GrpcAgent) GetSizeOfCurrentUser

func (agent GrpcAgent) GetSizeOfCurrentUser(userId int64) (int64, error)

func (GrpcAgent) RemoveFromPlaylist

func (agent GrpcAgent) RemoveFromPlaylist(userId int64, playlistId int64, trackId int64) error

func (GrpcAgent) Update

func (agent GrpcAgent) Update(userId int64, playlist *playlistProto.Playlist) error

Jump to

Keyboard shortcuts

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