Documentation ¶
Index ¶
- Constants
- func DeleteCookie(w http.ResponseWriter, name string)
- func FAQ(t views.Template) http.HandlerFunc
- func ReadCookie(r *http.Request, name string) (string, error)
- func StaticHandler(t views.Template) http.HandlerFunc
- type GalleryController
- func (g GalleryController) Create(w http.ResponseWriter, r *http.Request)
- func (g GalleryController) Delete(w http.ResponseWriter, r *http.Request)
- func (g GalleryController) DeleteImage(w http.ResponseWriter, r *http.Request)
- func (g GalleryController) Edit(w http.ResponseWriter, r *http.Request)
- func (g GalleryController) Image(w http.ResponseWriter, r *http.Request)
- func (g GalleryController) Index(w http.ResponseWriter, r *http.Request)
- func (g GalleryController) New(w http.ResponseWriter, r *http.Request)
- func (g GalleryController) Show(w http.ResponseWriter, r *http.Request)
- func (g GalleryController) Update(w http.ResponseWriter, r *http.Request)
- func (g GalleryController) UploadImage(w http.ResponseWriter, r *http.Request)
- type Template
- type Users
- func (u Users) Create(w http.ResponseWriter, r *http.Request)
- func (u Users) CurrentUser(w http.ResponseWriter, r *http.Request)
- func (u Users) ForgotPassword(w http.ResponseWriter, r *http.Request)
- func (u Users) New(w http.ResponseWriter, r *http.Request)
- func (u Users) ProcessForgotPassword(w http.ResponseWriter, r *http.Request)
- func (u Users) ProcessResetPassword(w http.ResponseWriter, r *http.Request)
- func (u Users) ProcessSignIn(w http.ResponseWriter, r *http.Request)
- func (u Users) ProcessSignOut(w http.ResponseWriter, r *http.Request)
- func (u Users) ResetPassword(w http.ResponseWriter, r *http.Request)
- func (u Users) SignIn(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const CookieSession = "session"
Variables ¶
This section is empty.
Functions ¶
func DeleteCookie ¶
func DeleteCookie(w http.ResponseWriter, name string)
func StaticHandler ¶
func StaticHandler(t views.Template) http.HandlerFunc
Types ¶
type GalleryController ¶
type GalleryController struct { Template struct { New Template Edit Template Index Template Show Template } GalleryService *models.GalleryService }
func (GalleryController) Create ¶
func (g GalleryController) Create(w http.ResponseWriter, r *http.Request)
func (GalleryController) Delete ¶
func (g GalleryController) Delete(w http.ResponseWriter, r *http.Request)
func (GalleryController) DeleteImage ¶
func (g GalleryController) DeleteImage(w http.ResponseWriter, r *http.Request)
func (GalleryController) Edit ¶
func (g GalleryController) Edit(w http.ResponseWriter, r *http.Request)
func (GalleryController) Image ¶
func (g GalleryController) Image(w http.ResponseWriter, r *http.Request)
func (GalleryController) Index ¶
func (g GalleryController) Index(w http.ResponseWriter, r *http.Request)
func (GalleryController) New ¶
func (g GalleryController) New(w http.ResponseWriter, r *http.Request)
func (GalleryController) Show ¶
func (g GalleryController) Show(w http.ResponseWriter, r *http.Request)
func (GalleryController) Update ¶
func (g GalleryController) Update(w http.ResponseWriter, r *http.Request)
func (GalleryController) UploadImage ¶
func (g GalleryController) UploadImage(w http.ResponseWriter, r *http.Request)
type Users ¶
type Users struct { Template struct { New Template SignIn Template ForgotPassword Template CheckYourEmail Template ResetPassword Template } UserService *models.UserService SessionService *models.SessionService PasswordResetService *models.PasswordResetService EmailService *models.EmailService }
func (Users) CurrentUser ¶
func (u Users) CurrentUser(w http.ResponseWriter, r *http.Request)
func (Users) ForgotPassword ¶
func (u Users) ForgotPassword(w http.ResponseWriter, r *http.Request)
func (Users) ProcessForgotPassword ¶
func (u Users) ProcessForgotPassword(w http.ResponseWriter, r *http.Request)
func (Users) ProcessResetPassword ¶
func (u Users) ProcessResetPassword(w http.ResponseWriter, r *http.Request)
func (Users) ProcessSignIn ¶
func (u Users) ProcessSignIn(w http.ResponseWriter, r *http.Request)
func (Users) ProcessSignOut ¶
func (u Users) ProcessSignOut(w http.ResponseWriter, r *http.Request)
func (Users) ResetPassword ¶
func (u Users) ResetPassword(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.