Discover Packages
github.com/bremade/recify
model
package
Version:
v0.0.0-...-327d889
Opens a new window with list of versions in this module.
Published: Oct 1, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Ingredient struct {
Name string `bson:"name" json:"name"`
Amount float32 `bson:"amount" json:"amount"`
Unit string `bson:"unit" json:"unit"`
}
type Recipe struct {
Id string `bson:"_id" json:"id"`
Creators []string `bson:"creators" json:"creators"`
Title string `bson:"title" json:"title"`
Description string `bson:"description" json:"description"`
Tags []Tag `bson:"tags" json:"tags"`
Time Time `bson:"time" json:"time"`
Price float32 `bson:"price" json:"price"`
Servings int `bson:"servings" json:"servings"`
Steps []Step `bson:"steps" json:"steps"`
Ingredients []Ingredient `bson:"ingredients" json:"ingredients"`
}
type SessionStatus struct {
Username string `json:"username"`
LoggedIn bool `json:"logged_in"`
}
type Step struct {
Description string `bson:"description" json:"description"`
}
type Tag struct {
Name string `bson:"name" json:"name"`
}
type Time struct {
Worktime int `bson:"worktime" json:"worktime"`
Resttime int `bson:"resttime" json:"resttime"`
Cooktime int `bson:"cooktime" json:"cooktime"`
}
type User struct {
Id string `bson:"_id"`
Name string `bson:"name"`
PasswordHash string `bson:"passwordhash"`
}
type UsernameAndPassword struct {
Username string `json:"username"`
Password string `json:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.