useractions

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DailyEmail

func DailyEmail(context schedule.Context)

DailyEmail sends a daily email to subscribed users with top stories - change this to WeeklyEmail before putting it into production We should probably only do this for kenny at present

func HandleCreate

func HandleCreate(context router.Context) error

HandleCreate handles POST /users/create from the register page

func HandleCreateShow

func HandleCreateShow(context router.Context) error

HandleCreateShow handles GET /users/create

func HandleDestroy

func HandleDestroy(context router.Context) error

HandleDestroy responds to POST /users/1/destroy

func HandleIndex

func HandleIndex(context router.Context) error

HandleIndex serves a GET request at /users

func HandleLogin

func HandleLogin(context router.Context) error

HandleLogin handles a post to /users/login

func HandleLoginShow

func HandleLoginShow(context router.Context) error

HandleLoginShow shows the page at /users/login

func HandleLogout

func HandleLogout(context router.Context) error

HandleLogout clears the current user's session /users/logout

func HandleShow

func HandleShow(context router.Context) error

HandleShow serve a get request at /users/1

func HandleShowName

func HandleShowName(context router.Context) error

HandleShowName redirects a GET request of /u/username to the user show page

func HandleUpdate

func HandleUpdate(context router.Context) error

HandleUpdate or PUT /users/1/update

func HandleUpdateShow

func HandleUpdateShow(context router.Context) error

HandleUpdateShow serves a get request at /users/1/update (show form to update)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL