toys

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 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) AddToy

func (api *ServerAPI) AddToy(ctx context.Context, in *toys.AddToyIn) (*toys.AddToyOut, error)

AddToy handler adds new Toy for Master.

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.

func (*ServerAPI) GetToy

func (api *ServerAPI) GetToy(ctx context.Context, in *toys.GetToyIn) (*toys.GetToyOut, error)

GetToy handler returns Toy for provided ID.

func (*ServerAPI) GetToys

func (api *ServerAPI) GetToys(ctx context.Context, in *toys.GetToysIn) (*toys.GetToysOut, error)

GetToys handler returns all Toys.

Jump to

Keyboard shortcuts

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