masters

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServer

func RegisterServer(gRPCServer *grpc.Server, useCases interfaces.UseCases, logger *slog.Logger)

RegisterServer handler (serverAPI) for MastersServer to gRPC server:.

Types

type ServerAPI

type ServerAPI struct {
	// Helps to test single endpoints, if others is not implemented yet
	toys.UnimplementedMastersServiceServer
	// contains filtered or unexported fields
}

func (*ServerAPI) GetMaster

func (api *ServerAPI) GetMaster(ctx context.Context, request *toys.GetMasterRequest) (*toys.GetMasterResponse, error)

GetMaster handler returns Master for provided ID.

func (*ServerAPI) GetMasters

func (api *ServerAPI) GetMasters(ctx context.Context, request *emptypb.Empty) (*toys.GetMastersResponse, error)

GetMasters handler returns all Masters.

func (*ServerAPI) RegisterMaster

func (api *ServerAPI) RegisterMaster(
	ctx context.Context,
	request *toys.RegisterMasterRequest,
) (*toys.RegisterMasterResponse, error)

RegisterMaster handler register new Master for User.

Jump to

Keyboard shortcuts

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