Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServer ¶
RegisterServer handler (serverAPI) for CategoriesServer to gRPC server:.
Types ¶
type ServerAPI ¶
type ServerAPI struct { // Helps to test single endpoints, if others is not implemented yet toys.UnimplementedCategoriesServiceServer // contains filtered or unexported fields }
func (*ServerAPI) GetCategories ¶
func (api *ServerAPI) GetCategories(ctx context.Context, in *toys.GetCategoriesIn) (*toys.GetCategoriesOut, error)
GetCategories handler returns all Categories.
func (*ServerAPI) GetCategory ¶
func (api *ServerAPI) GetCategory(ctx context.Context, in *toys.GetCategoryIn) (*toys.GetCategoryOut, error)
GetCategory handler returns Category for provided ID.
Click to show internal directories.
Click to hide internal directories.