Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentQuery ¶
type CommentResult ¶
type Comments ¶
type Comments struct {
Count int `json:"count"`
Results []CommentResult `json:"results"`
MaxAge int `json:"maxAge"`
SurrogateKeys []string `json:"surrogateKeys"`
}
type Ingredient ¶
type Ingredient struct {
ID string `json:"id"`
Name string `json:"name"`
Unit string `json:"unit"`
UnitID string `json:"unitId"`
Amount float64 `json:"amount"`
IsBasic bool `json:"isBasic"`
UsageInfo string `json:"usageInfo"`
URL any `json:"url"`
FoodID string `json:"foodId"`
ProductGroup string `json:"productGroup"`
BlsKey string `json:"blsKey"`
}
type IngredientGroup ¶
type IngredientGroup struct {
Header string `json:"header"`
Ingredients []Ingredient `json:"ingredients"`
}
type Recipe ¶
type Recipe struct {
ID string `json:"id"`
Type int `json:"type"`
Title string `json:"title" form:"title"`
Subtitle string `json:"subtitle"`
Owner Owner `json:"owner"`
Rating Rating `json:"rating"`
Difficulty int `json:"difficulty"`
HasImage bool `json:"hasImage"`
HasVideo bool `json:"hasVideo"`
PreviewImageID string `json:"previewImageId"`
PreviewImageOwner Owner `json:"previewImageOwner"`
PreparationTime int `json:"preparationTime"`
IsSubmitted bool `json:"isSubmitted"`
IsRejected bool `json:"isRejected"`
CreatedAt time.Time `json:"createdAt"`
ImageCount int `json:"imageCount"`
Editor Owner `json:"editor"`
SubmissionDate time.Time `json:"submissionDate"`
IsPremium bool `json:"isPremium"`
Status int `json:"status"`
Slug string `json:"slug"`
PreviewImageURLTemplate string `json:"previewImageUrlTemplate"`
IsPlus bool `json:"isPlus"`
Servings int `json:"servings"`
KCalories int `json:"kCalories"`
Nutrition any `json:"nutrition"`
Instructions string `json:"instructions"`
MiscellaneousText string `json:"miscellaneousText"`
IngredientsText string `json:"ingredientsText"`
Tags []string `json:"tags"`
FullTags []Tag `json:"fullTags"`
ViewCount int `json:"viewCount"`
CookingTime int `json:"cookingTime"`
RestingTime int `json:"restingTime"`
TotalTime int `json:"totalTime"`
IngredientGroups []IngredientGroup `json:"ingredientGroups"`
CategoryIDs []string `json:"categoryIds"`
RecipeVideoID any `json:"recipeVideoId"`
IsIndexable bool `json:"isIndexable"`
AffiliateContent string `json:"affiliateContent"`
SiteURL string `json:"siteUrl"`
}
type RecipeAPI ¶
type RecipeAPI interface {
Get(id string) (*Recipe, error)
Comments(c CommentQuery) (*Comments, error)
Search(s Search) (*RecipeSearch, error)
Inspirations() (*RecipeInspirationsMixed, error)
}
type RecipeInspirations ¶
type RecipeInspirations struct {
Recipes []Recipe `json:"recipes"`
}
type RecipeInspirationsMixed ¶
type RecipeSearch ¶
type RecipeSearch struct {
Count int `json:"count"`
QueryID string `json:"queryId"`
Results []RecipeSearchResult `json:"results"`
TagGroups []TagGroup `json:"tagGroups"`
}
type RecipeSearchResult ¶
Click to show internal directories.
Click to hide internal directories.