Documentation ¶
Index ¶
- func RegisterServer(gRPCServer *grpc.Server, useCases interfaces.UseCases, logger *slog.Logger)
- type ServerAPI
- func (api *ServerAPI) AddToy(ctx context.Context, in *toys.AddToyIn) (*toys.AddToyOut, error)
- func (api *ServerAPI) GetMasterToys(ctx context.Context, in *toys.GetMasterToysIn) (*toys.GetToysOut, error)
- func (api *ServerAPI) GetToy(ctx context.Context, in *toys.GetToyIn) (*toys.GetToyOut, error)
- func (api *ServerAPI) GetToys(ctx context.Context, in *toys.GetToysIn) (*toys.GetToysOut, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServer ¶
RegisterServer handler (serverAPI) for ToysServer to gRPC server:.
Types ¶
type ServerAPI ¶
type ServerAPI struct { // Helps to test single endpoints, if others is not implemented yet toys.UnimplementedToysServiceServer // contains filtered or unexported fields }
func (*ServerAPI) GetMasterToys ¶ added in v0.0.3
func (api *ServerAPI) GetMasterToys(ctx context.Context, in *toys.GetMasterToysIn) (*toys.GetToysOut, error)
GetMasterToys handler returns all Toys for master with provided ID.
Click to show internal directories.
Click to hide internal directories.