grpc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	api.UnimplementedSetMakerServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(svc *service.Service) (*Server, error)

func (*Server) CreateArtist

func (s *Server) CreateArtist(ctx context.Context, req *api.CreateArtistRequest) (*domain.Artist, error)

func (*Server) CreateSong

func (s *Server) CreateSong(ctx context.Context, req *api.CreateSongRequest) (*domain.Song, error)

func (*Server) DeleteArtist

func (s *Server) DeleteArtist(ctx context.Context, id *wrapperspb.StringValue) (*api.DeleteArtistResponse, error)

func (*Server) DeleteSong

func (*Server) GetArtist

func (s *Server) GetArtist(ctx context.Context, id *wrapperspb.StringValue) (*domain.Artist, error)

func (*Server) GetSong

func (s *Server) GetSong(ctx context.Context, id *wrapperspb.StringValue) (*domain.Song, error)

func (*Server) ListArtists

func (s *Server) ListArtists(ctx context.Context, req *api.ListArtistsRequest) (*api.ListArtistsResponse, error)

func (*Server) ListSongs

func (s *Server) ListSongs(ctx context.Context, req *api.ListSongsRequest) (*api.ListSongsResponse, error)

func (*Server) UpdateArtist

func (s *Server) UpdateArtist(ctx context.Context, req *api.UpdateArtistRequest) (*domain.Artist, error)

func (*Server) UpdateSong

func (s *Server) UpdateSong(ctx context.Context, req *api.UpdateSongRequest) (*domain.Song, error)

Jump to

Keyboard shortcuts

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