Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleLogin ¶
func HandleLogin(userCtrl *user.Controller, cookieName string) http.HandlerFunc
HandleLogin returns an http.HandlerFunc that authenticates the user and returns an authentication token on success.
func HandleLogout ¶
func HandleLogout(userCtrl *user.Controller, cookieName string) http.HandlerFunc
HandleLogout returns a http.HandlerFunc that deletes the user token being used in the respective request and logs the user out.
func HandleRegister ¶
func HandleRegister(userCtrl *user.Controller, sysCtrl *system.Controller, cookieName string) http.HandlerFunc
HandleRegister returns an http.HandlerFunc that processes an http.Request to register the named user account with the system.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.