Documentation ¶
Index ¶
- type TestService
- func (svc *TestService) GetBidirectionalStream(stream pb.Tests_GetBidirectionalStreamServer) error
- func (svc *TestService) GetClientStream(stream pb.Tests_GetClientStreamServer) error
- func (svc *TestService) GetSpotifyPlaylist(_ context.Context, _ *empty.Empty) (*pb.SpotifyPlaylist, error)
- func (svc *TestService) GetSpotifyPlaylistStream(_ *empty.Empty, stream pb.Tests_GetSpotifyPlaylistStreamServer) error
- func (svc *TestService) GetTest(ctx context.Context, test *pb.Test) (*pb.Test, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestService ¶
type TestService struct {
*data.SpotifyDAO
}
func (*TestService) GetBidirectionalStream ¶
func (svc *TestService) GetBidirectionalStream(stream pb.Tests_GetBidirectionalStreamServer) error
GetBidirectionalStream will act the same as GetTest does, but with client and server streaming
func (*TestService) GetClientStream ¶
func (svc *TestService) GetClientStream(stream pb.Tests_GetClientStreamServer) error
GetClientStream acts as GetTest does, but as a client stream
func (*TestService) GetSpotifyPlaylist ¶
func (svc *TestService) GetSpotifyPlaylist(_ context.Context, _ *empty.Empty) (*pb.SpotifyPlaylist, error)
GetSpotifyPlaylist retrieves our spotify playlist and it's metadata, then returns it to the client
func (*TestService) GetSpotifyPlaylistStream ¶
func (svc *TestService) GetSpotifyPlaylistStream(_ *empty.Empty, stream pb.Tests_GetSpotifyPlaylistStreamServer) error
GetSpotifyPlaylistStream gets a spotify playlist and streams back the tracks to our client
Click to show internal directories.
Click to hide internal directories.