categories

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: GPL-3.0 Imports: 12 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 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.

Jump to

Keyboard shortcuts

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