rpc

package
v0.0.0-...-8a9c74c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func (*TestService) GetTest

func (svc *TestService) GetTest(ctx context.Context, test *pb.Test) (*pb.Test, error)

GetTest is an echo endpoint until I put more interesting logic into here

Jump to

Keyboard shortcuts

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