model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Name string
}

type Ingredient

type Ingredient struct {
	Name string
	Tags []*Category
}

type Recipe

type Recipe struct {
	Name        string
	AuthorName  string
	Servings    int
	Steps       []*RecipeStep
	Ingredients []*RecipeIngredient
	Tags        []*Category
	Related     []*Recipe
}

type RecipeIngredient

type RecipeIngredient struct {
	Ingredient *Ingredient
	Quantity   float32
	Unit       string
}

type RecipeStep

type RecipeStep struct {
	Text string
}

type User

type User struct {
	Name    string
	Tags    []*Category
	Recipes []*Recipe
}

Jump to

Keyboard shortcuts

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