ingredient

package
v0.0.0-...-1afb120 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateIngredientDTO

type CreateIngredientDTO struct {
	Name           string          `json:"name"`
	BaseUnit       string          `json:"base_unit"`
	NutritionFacts *NutritionFacts `json:"nutrition_facts,omitempty"`
}

type FindIngredientsDTO

type FindIngredientsDTO struct {
	ID        string `json:"ingredient_id,omitempty"`
	NameQuery string `json:"name_query,omitempty"`
}

type Ingredient

type Ingredient struct {
	ID             string          `json:"id" bson:"_id,omitempty"`
	Name           string          `json:"name" bson:"name,omitempty"`
	BaseUnit       string          `json:"base_unit" bson:"base_unit,omitempty"`
	NutritionFacts *NutritionFacts `json:"nutrition_facts,omitempty" bson:"nutrition_facts,omitempty"`
}

type IngredientDTO

type IngredientDTO struct {
	Ingredient Ingredient `json:"ingredient,omitempty"`
	Name       string     `json:"name,omitempty"`
	ID         string     `json:"ingredient_id,omitempty"`
	NameQuery  string     `json:"name_query,omitempty"`
	Error      string     `json:"error,omitempty"`
}

type NutritionFacts

type NutritionFacts struct {
	Calories      float64 `json:"calories" bson:"calories,omitempty"`
	Proteins      float64 `json:"proteins" bson:"proteins,omitempty"`
	Fats          float64 `json:"fats" bson:"fats,omitempty"`
	Carbohydrates float64 `json:"carbohydrates" bson:"carbohydrates,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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