Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ID int `storm:"id,increment" json:"id"` Height float64 `json:"height"` Activity float64 `json:"activity"` Birthday time.Time `json:"birthday"` Gender string `json:"gender"` UnitSystem string `json:"unitSystem"` }
Config represents the configuration and is unique and holds data relevant for calculating the metabolic rate of the user
type Day ¶
type Day struct { Entries Entries `json:"entries"` Used int `json:"used"` Date time.Time `json:"date"` }
Day is an actual day with all it's entries and the calories which have been used for the day
type Entry ¶
type Entry struct { ID int `storm:"id,increment" json:"id"` Created time.Time `json:"created"` EntryDate string `json:"entryDate"` Calories int `json:"calories"` Food string `json:"food"` BMR float64 `json:"bmr"` AMR float64 `json:"amr"` }
Entry can be added and removes and hold the date they have been added, the date they have been added to, the used calories and the food which has been consumed. Also, for each entry, the metabolic rates are calculated, for later bookkeeping
Click to show internal directories.
Click to hide internal directories.