Documentation ¶
Index ¶
- Constants
- type RecipeCreateForm
- type RecipeUpdateForm
- type Recipes
- func (rc *Recipes) Create(rw http.ResponseWriter, r *http.Request)
- func (rc *Recipes) Edit(rw http.ResponseWriter, r *http.Request)
- func (rc *Recipes) ImageDelete(rw http.ResponseWriter, r *http.Request)
- func (rc *Recipes) ImageUpload(rw http.ResponseWriter, r *http.Request)
- func (rc *Recipes) Index(rw http.ResponseWriter, r *http.Request)
- func (rc *Recipes) Show(rw http.ResponseWriter, r *http.Request)
- func (rc *Recipes) Update(rw http.ResponseWriter, r *http.Request)
- type SignInForm
- type SignUpForm
- type Static
- type Users
Constants ¶
View Source
const ( RouteRecipeEdit = "routeRecipeEdit" RouteRecipeShow = "routeRecipeShow" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecipeCreateForm ¶
type RecipeCreateForm struct {
Title string `schema:"title"`
}
type RecipeUpdateForm ¶
type Recipes ¶
type Recipes struct { NewView *views.View EditView *views.View IndexView *views.View ShowView *views.View // contains filtered or unexported fields }
func NewRecipes ¶
func NewRecipes(rs models.RecipeService, is models.ImageService, router *mux.Router) *Recipes
func (*Recipes) ImageDelete ¶
func (rc *Recipes) ImageDelete(rw http.ResponseWriter, r *http.Request)
func (*Recipes) ImageUpload ¶
func (rc *Recipes) ImageUpload(rw http.ResponseWriter, r *http.Request)
type SignInForm ¶
type SignUpForm ¶
Click to show internal directories.
Click to hide internal directories.