Documentation ¶
Index ¶
- func EmailMonthlyInsights()
- func HandleCreate(email string, password string) error
- func HandleDestroy(w http.ResponseWriter, r *http.Request) error
- func HandleIndex(w http.ResponseWriter, r *http.Request) error
- func HandleLogin(w http.ResponseWriter, r *http.Request) error
- func HandleLoginShow(w http.ResponseWriter, r *http.Request) error
- func HandleLogout(w http.ResponseWriter, r *http.Request) error
- func HandlePasswordChange(w http.ResponseWriter, r *http.Request) error
- func HandlePasswordChangeShow(w http.ResponseWriter, r *http.Request) error
- func HandleShow(w http.ResponseWriter, r *http.Request) error
- func HandleShowName(w http.ResponseWriter, r *http.Request) error
- func HandleUpdate(id int64, email string, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmailMonthlyInsights ¶
func EmailMonthlyInsights()
func HandleCreate ¶
HandleCreate creates the user
func HandleDestroy ¶
func HandleDestroy(w http.ResponseWriter, r *http.Request) error
HandleDestroy responds to /users/n/destroy by deleting the user.
func HandleIndex ¶
func HandleIndex(w http.ResponseWriter, r *http.Request) error
HandleIndex displays a list of users.
func HandleLogin ¶
func HandleLogin(w http.ResponseWriter, r *http.Request) error
HandleLogin responds to POST /users/login by setting a cookie on the request with encrypted user data.
func HandleLoginShow ¶
func HandleLoginShow(w http.ResponseWriter, r *http.Request) error
HandleLoginShow shows the page at /users/login
func HandleLogout ¶
func HandleLogout(w http.ResponseWriter, r *http.Request) error
HandleLogout clears the current user's session /users/logout
func HandlePasswordChange ¶
func HandlePasswordChange(w http.ResponseWriter, r *http.Request) error
HandlePasswordChange responds to gets the new password, validates it and updates it in the db
func HandlePasswordChangeShow ¶
func HandlePasswordChangeShow(w http.ResponseWriter, r *http.Request) error
HandlePasswordResetChangeShow responds to GET /users/password/change
func HandleShow ¶
func HandleShow(w http.ResponseWriter, r *http.Request) error
HandleShow displays a single user.
func HandleShowName ¶
func HandleShowName(w http.ResponseWriter, r *http.Request) error
HandleShowName redirects a GET request of /u/username to the user show page
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.