Versions in this module Expand all Collapse all v0 v0.0.4 Feb 7, 2022 Changes in this version + func GetDefaultFillIngredients() []*models.Ingredient + func GetDefaultFillMeals(tags []*models.Tag, ingredients []*models.Ingredient) []*models.Meal + func GetDefaultFillTags() []*models.Tag + type Handler struct + DB *gorm.DB + func NewHandler(config configs.Options) (*Handler, error) + func (dbHandler *Handler) Close() + func (dbHandler *Handler) CreateIngredient(ingredient models.Ingredient) (models.Ingredient, error) + func (dbHandler *Handler) CreateMeal(meal models.Meal) (models.Meal, error) + func (dbHandler *Handler) CreateTag(tag models.Tag) (models.Tag, error) + func (dbHandler *Handler) DeleteMeal(id int64) error + func (dbHandler *Handler) FindMealsByTag(tagID *int64) ([]*models.Meal, error) + func (dbHandler *Handler) GetIngredients() ([]*models.Ingredient, error) + func (dbHandler *Handler) GetMeal(id int64) (*models.Meal, error) + func (dbHandler *Handler) GetTags() ([]*models.Tag, error) + func (dbHandler *Handler) UpdateMeal(m models.Meal) (models.Meal, error)