shoppinglist

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewShoppingListServer

func NewShoppingListServer() *shoppingListServer

Types

type ShoppingList

type ShoppingList struct {
	ID          primitive.ObjectID `json:"id"`
	UserID      string             `json:"userId"`
	Items       []ShoppingListItem `json:"items"`
	Deleted     bool               `json:"deleted"`
	LastUpdated time.Time          `json:"lastUpdated"`
}

ShoppingList is a model of a shopping list

type ShoppingListItem

type ShoppingListItem struct {
	Ingredient string `json:"ingredient"`
	Unit       string `json:"unit"`
	Amount     int    `json:"amount"`
}

Jump to

Keyboard shortcuts

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