model

package
v0.0.0-...-327d889 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: GPL-3.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 Ingredient

type Ingredient struct {
	Name   string  `bson:"name" json:"name"`
	Amount float32 `bson:"amount" json:"amount"`
	Unit   string  `bson:"unit" json:"unit"`
}

type Recipe

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

type SessionStatus struct {
	Username string `json:"username"`
	LoggedIn bool   `json:"logged_in"`
}

type Step

type Step struct {
	Description string `bson:"description" json:"description"`
}

type Tag

type Tag struct {
	Name string `bson:"name" json:"name"`
}

type Test

type Test struct {
	Id   int
	Text string
}

type Time

type Time struct {
	Worktime int `bson:"worktime" json:"worktime"`
	Resttime int `bson:"resttime" json:"resttime"`
	Cooktime int `bson:"cooktime" json:"cooktime"`
}

type User

type User struct {
	Id           string `bson:"_id"`
	Name         string `bson:"name"`
	PasswordHash string `bson:"passwordhash"`
}

type UsernameAndPassword

type UsernameAndPassword struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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