Documentation
¶
Index ¶
- func AddNoteToRecipePost(ctx *macaron.Context, form NoteForm)
- func AttachToRecipePost(ctx *macaron.Context, form AttachmentForm)
- func CreateRecipe(ctx *macaron.Context)
- func CreateRecipePost(ctx *macaron.Context, form RecipeForm)
- func DeleteRecipe(ctx *macaron.Context)
- func EditRecipe(ctx *macaron.Context)
- func EditRecipePost(ctx *macaron.Context, form RecipeForm)
- func GetRecipe(ctx *macaron.Context)
- func Home(ctx *macaron.Context)
- func InternalServerError(ctx *macaron.Context, err error)
- func ListRecipes(ctx *macaron.Context)
- func NotFound(ctx *macaron.Context)
- func RedirectIfHasError(ctx *macaron.Context, err error) bool
- type AttachmentForm
- type NoteForm
- type RecipeForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNoteToRecipePost ¶
func AttachToRecipePost ¶
func AttachToRecipePost(ctx *macaron.Context, form AttachmentForm)
func CreateRecipe ¶
CreateRecipe handles rendering the create recipe screen
func CreateRecipePost ¶
func CreateRecipePost(ctx *macaron.Context, form RecipeForm)
CreateRecipePost handles processing the supplied form input from the create recipe screen
func DeleteRecipe ¶
DeleteRecipe handles deleting the recipe with the given id
func EditRecipe ¶
EditRecipe handles rendering the edit recipe screen
func EditRecipePost ¶
func EditRecipePost(ctx *macaron.Context, form RecipeForm)
EditRecipePost handles processing the supplied form input from the edit recipe screen
func InternalServerError ¶
InternalServerError handles 500 errors
func ListRecipes ¶
ListRecipes handles retrieving and rending a list of available recipes
Types ¶
type AttachmentForm ¶
type AttachmentForm struct {
FileName string `form:"file_name"`
FileContent *multipart.FileHeader `form:"file_content"`
}
AttachmentForm encapsulates user input for attaching a file (image) to a recipe
Click to show internal directories.
Click to hide internal directories.