masters

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: GPL-3.0 Imports: 13 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, in *toys.GetMasterIn) (*toys.GetMasterOut, error)

GetMaster handler returns Master for provided ID.

func (*ServerAPI) GetMasterByUser added in v0.0.7

func (api *ServerAPI) GetMasterByUser(ctx context.Context, in *toys.GetMasterByUserIn) (*toys.GetMasterOut, error)

func (*ServerAPI) GetMasters

func (api *ServerAPI) GetMasters(ctx context.Context, in *toys.GetMastersIn) (*toys.GetMastersOut, error)

GetMasters handler returns all Masters.

func (*ServerAPI) RegisterMaster

func (api *ServerAPI) RegisterMaster(ctx context.Context, in *toys.RegisterMasterIn) (*toys.RegisterMasterOut, 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