Documentation ¶
Index ¶
- Constants
- func Serve(ctx context.Context) error
- type Service
- func (svc *Service) CreateIngredient(ctx context.Context, req *pb.CreateIngredientRequest) (*pb.CreateIngredientResponse, error)
- func (svc *Service) CreateMeal(ctx context.Context, req *pb.CreateMealRequest) (*pb.CreateMealResponse, error)
- func (svc *Service) CreateRecipe(ctx context.Context, req *pb.CreateRecipeRequest) (*pb.CreateRecipeResponse, error)
- func (svc *Service) DeleteIngredient(ctx context.Context, req *pb.DeleteIngredientRequest) (*pb.DeleteIngredientResponse, error)
- func (svc *Service) DeleteMeal(ctx context.Context, req *pb.DeleteMealRequest) (*pb.DeleteMealResponse, error)
- func (svc *Service) DeleteRecipe(ctx context.Context, req *pb.DeleteRecipeRequest) (*pb.DeleteRecipeResponse, error)
- func (svc *Service) ListIngredients(ctx context.Context, req *pb.ListIngredientRequest) (*pb.ListIngredientsResponse, error)
- func (svc *Service) ListMeals(ctx context.Context, req *pb.ListMealRequest) (*pb.ListMealsResponse, error)
- func (svc *Service) ListRecipes(ctx context.Context, req *pb.ListRecipeRequest) (*pb.ListRecipesResponse, error)
Constants ¶
View Source
const ( OperationCreate string = "CREATE" OperationDelete string = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.