recipe

package
v0.0.0-...-96aa2c8 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRecipeServer

func NewRecipeServer() *recipeServer

Types

type Recipe

type Recipe struct {
	ID           primitive.ObjectID `json:"id"`
	Name         string             `json:"name"`
	ActiveTime   int                `json:"activeTime"`
	TotalTime    int                `json:"totalTime"`
	Servings     int                `json:"servings"`
	Categories   []string           `json:"categories"`
	Ingredients  string             `json:"ingredients"`
	Instructions string             `json:"instructions"`
	UserID       string             `json:"userId"`
	Deleted      bool               `json:"deleted"`
	LastUpdated  time.Time          `json:"lastUpdated"`
	Calories     int                `json:"calories"`
}

Recipe is a model of a recipe

Jump to

Keyboard shortcuts

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