package
2.1.2+incompatible
Repository: https://github.com/chadweimer/gomp.git
Documentation: pkg.go.dev

# Functions

New constructs a new Model object.
NewRecipeImageModel constructs a RecipeImageModel.

# Constants

SortByRandom represents the value to use in RecipesFilter.SortBy and TagsFilter.SortBy in order to sort the results randomly.
SortDirAsc represents the value to use in RecipesFilter.SortDir and TagsFilter.SortDir in order to sort the results in ascending order.
SortDirDesc represents the value to use in RecipesFilter.SortDir and TagsFilter.SortDir in order to sort the results in descending order.
SortRecipeByID represents the value to use in RecipesFilter.SortBy in order to sort by the recipe ID.
SortRecipeByName represents the value to use in RecipesFilter.SortBy in order to sort by the recipe name.
SortRecipeByRating represents the value to use in RecipesFilter.SortBy in order to sort by the recipe rating.
SortTagByFrequency represents the value to use in TagsFilter.SortBy in order to sort by the number of recipes using a tag.
SortTagByText represents the value to use in TagsFilter.SortBy in order to sort by the tag value.

# Variables

ErrNotFound represents the error when a database record cannot be found matching the criteria specified by the caller.

# Structs

Model encapsulates the model layer of the application, including database access.
Note represents an individual comment (or note) on a recipe.
NoteModel provides functionality to edit and retrieve notes attached to recipes.
Recipe is the primary model class for recipe storage and retrieval.
RecipeImage represents the data associated with an image attached to a recipe.
RecipeImageModel provides functionality to edit and retrieve images attached to recipes.
RecipeModel provides functionality to edit and retrieve recipes.
RecipesFilter is the primary model class for recipe search.
SearchModel provides functionality to search recipes.
TagModel provides functionality to edit and retrieve tags attached to recipes.
TagsFilter is the primary model class for tag search.
User represents an individual user.
UserModel provides functionality to edit and authenticate users.

# Type aliases

Notes represents a collection of Note objects.
RecipeImages represents a collection of RecipeImage objects.
Recipes represents a collection of Recipe objects.