Documentation ¶
Index ¶
- func CreatePantryItem(newItem types.CreatePantryItem, locationID uuid.UUID) (db.PantryItem, error)
- func CreatePantryLocation(newLocation types.CreatePantryLocation, ownerID uuid.UUID) (db.PantryLocation, error)
- func CreateRecipe(recipe db.CreateRecipe, userID uuid.UUID) (db.ReadRecipe, error)
- func CreateUser(user db.CreateUser) (db.User, error)
- func DeletePantryItem(itemID uuid.UUID) error
- func DeletePantryLocation(locationID uuid.UUID) error
- func DeleteRecipe(recipeID uuid.UUID) error
- func DoesUserOwnPantryItem(userID uuid.UUID, pantryItemID uuid.UUID) (bool, error)
- func DoesUserOwnPantryLocation(userID uuid.UUID, locationID uuid.UUID) (bool, error)
- func DoesUserOwnRecipe(userID uuid.UUID, recipeId uuid.UUID) (bool, error)
- func GetLabelCountByUser(userID uuid.UUID) (int64, error)
- func GetLabelNamesByUser(userID uuid.UUID) ([]string, error)
- func GetPantryItemByID(itemID uuid.UUID) (types.ReadPantryItem, error)
- func GetPantryItemCountByUserID(userID uuid.UUID) (int64, error)
- func GetPantryItemsByUserID(userID uuid.UUID, offset uint, limit uint, filters PantryItemsFilters) ([]types.ReadPantryItem, error)
- func GetPantryLocationByID(pantryID uuid.UUID) (db.PantryLocation, error)
- func GetPantryLocationsByUserID(userID uuid.UUID) ([]db.PantryLocation, error)
- func GetRecipeById(id uuid.UUID) (db.ReadRecipe, error)
- func GetRecipesByUserID(userID uuid.UUID, offset uint, limit uint, filters RecipesFilterParams) ([]db.ReadRecipe, error)
- func GetRecipesByUserIDCount(userID uuid.UUID) (int64, error)
- func GetUserById(userID uuid.UUID) (db.User, error)
- func GetUserByUsername(username string) (db.User, error)
- func GetUserCount() (int64, error)
- func UpdatePantryItem(itemID uuid.UUID, update core.SelectedUpdate[types.UpdatePantryItem]) error
- func UpdatePantryLocation(locationID uuid.UUID, update core.SelectedUpdate[types.UpdatePantryLocation]) error
- func UpdateRecipe(recipeID uuid.UUID, recipe db.UpdateRecipe) (db.ReadRecipe, error)
- func UpdateRecipeImage(recipeID uuid.UUID, imageID *uuid.UUID) error
- type PantryItemsFilters
- type RecipesFilterParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePantryItem ¶
func CreatePantryItem( newItem types.CreatePantryItem, locationID uuid.UUID, ) (db.PantryItem, error)
func CreatePantryLocation ¶
func CreatePantryLocation( newLocation types.CreatePantryLocation, ownerID uuid.UUID, ) (db.PantryLocation, error)
func CreateRecipe ¶
func CreateRecipe(recipe db.CreateRecipe, userID uuid.UUID) (db.ReadRecipe, error)
func CreateUser ¶
func CreateUser(user db.CreateUser) (db.User, error)
func DeletePantryItem ¶
func DeletePantryLocation ¶
func DeleteRecipe ¶
func DoesUserOwnPantryItem ¶
func GetPantryItemByID ¶
func GetPantryItemByID(itemID uuid.UUID) (types.ReadPantryItem, error)
func GetPantryItemsByUserID ¶
func GetPantryItemsByUserID( userID uuid.UUID, offset uint, limit uint, filters PantryItemsFilters, ) ([]types.ReadPantryItem, error)
func GetPantryLocationByID ¶
func GetPantryLocationByID(pantryID uuid.UUID) (db.PantryLocation, error)
func GetPantryLocationsByUserID ¶
func GetPantryLocationsByUserID(userID uuid.UUID) ([]db.PantryLocation, error)
func GetRecipeById ¶
func GetRecipeById(id uuid.UUID) (db.ReadRecipe, error)
func GetRecipesByUserID ¶
func GetRecipesByUserID(userID uuid.UUID, offset uint, limit uint, filters RecipesFilterParams) ([]db.ReadRecipe, error)
func GetUserCount ¶
func UpdatePantryItem ¶
func UpdatePantryItem( itemID uuid.UUID, update core.SelectedUpdate[types.UpdatePantryItem], ) error
func UpdatePantryLocation ¶
func UpdatePantryLocation( locationID uuid.UUID, update core.SelectedUpdate[types.UpdatePantryLocation], ) error
func UpdateRecipe ¶
func UpdateRecipe(recipeID uuid.UUID, recipe db.UpdateRecipe) (db.ReadRecipe, error)
Types ¶
type PantryItemsFilters ¶
Click to show internal directories.
Click to hide internal directories.