Documentation ¶
Index ¶
- func RegisterServer(gRPCServer *grpc.Server, useCases interfaces.UseCases, logger *slog.Logger)
- type ServerAPI
- func (api *ServerAPI) GetMaster(ctx context.Context, in *toys.GetMasterIn) (*toys.GetMasterOut, error)
- func (api *ServerAPI) GetMasterByUser(ctx context.Context, in *toys.GetMasterByUserIn) (*toys.GetMasterOut, error)
- func (api *ServerAPI) GetMasters(ctx context.Context, in *toys.GetMastersIn) (*toys.GetMastersOut, error)
- func (api *ServerAPI) RegisterMaster(ctx context.Context, in *toys.RegisterMasterIn) (*toys.RegisterMasterOut, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServer ¶
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.
Click to show internal directories.
Click to hide internal directories.