server

package
v0.0.0-...-3db17e8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationCreate string = "CREATE"
	OperationDelete string = "DELETE"
)

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context) error

Types

type Service

type Service struct {
	pb.UnimplementedNutritionServer
	// contains filtered or unexported fields
}

func (*Service) CreateIngredient

func (svc *Service) CreateIngredient(ctx context.Context, req *pb.CreateIngredientRequest) (*pb.CreateIngredientResponse, error)

func (*Service) CreateMeal

func (svc *Service) CreateMeal(ctx context.Context, req *pb.CreateMealRequest) (*pb.CreateMealResponse, error)

func (*Service) CreateRecipe

func (svc *Service) CreateRecipe(ctx context.Context, req *pb.CreateRecipeRequest) (*pb.CreateRecipeResponse, error)

func (*Service) DeleteIngredient

func (svc *Service) DeleteIngredient(ctx context.Context, req *pb.DeleteIngredientRequest) (*pb.DeleteIngredientResponse, error)

func (*Service) DeleteMeal

func (svc *Service) DeleteMeal(ctx context.Context, req *pb.DeleteMealRequest) (*pb.DeleteMealResponse, error)

DeleteMeal implements proto.NutritionServer.

func (*Service) DeleteRecipe

func (svc *Service) DeleteRecipe(ctx context.Context, req *pb.DeleteRecipeRequest) (*pb.DeleteRecipeResponse, error)

func (*Service) ListIngredients

func (svc *Service) ListIngredients(ctx context.Context, req *pb.ListIngredientRequest) (*pb.ListIngredientsResponse, error)

func (*Service) ListMeals

func (svc *Service) ListMeals(ctx context.Context, req *pb.ListMealRequest) (*pb.ListMealsResponse, error)

ListMeals implements proto.NutritionServer.

func (*Service) ListRecipes

func (svc *Service) ListRecipes(ctx context.Context, req *pb.ListRecipeRequest) (*pb.ListRecipesResponse, error)

Jump to

Keyboard shortcuts

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