Documentation
¶
Index ¶
- func HandleCode(context router.Context) error
- func HandleCreate(context router.Context) error
- func HandleCreateShow(context router.Context) error
- func HandleDestroy(context router.Context) error
- func HandleDownvote(context router.Context) error
- func HandleFlag(context router.Context) error
- func HandleHome(context router.Context) error
- func HandleIndex(context router.Context) error
- func HandleShow(context router.Context) error
- func HandleSiteMap(context router.Context) error
- func HandleUpdate(context router.Context) error
- func HandleUpdateShow(context router.Context) error
- func HandleUpvote(context router.Context) error
- func HandleUpvoted(context router.Context) error
- func TweetStory(context schedule.Context, story *stories.Story)
- func TweetTopStory(context schedule.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCode ¶
HandleCode displays a list of stories linking to repos (github etc) using gravity to order them responds to GET /stories/code
func HandleCreate ¶
HandleCreate handles the POST of the create form for stories
func HandleCreateShow ¶
HandleCreateShow serves the create form via GET for stories
func HandleDestroy ¶
HandleDestroy handles a DESTROY request for stories
func HandleDownvote ¶
HandleDownvote handles POST to /stories/123/downvote
func HandleFlag ¶
HandleFlag handles POST to /stories/123/flag
func HandleHome ¶
HandleHome displays a list of stories using gravity to order them used for the home page for gravity rank see votes.go responds to GET /
func HandleIndex ¶
HandleIndex displays a list of stories at /stories
func HandleSiteMap ¶
HandleSiteMap renders a site map of top stories
func HandleUpdate ¶
HandleUpdate handles the POST of the form to update a story
func HandleUpdateShow ¶
HandleUpdateShow renders the form to update a story
func HandleUpvote ¶
HandleUpvote handles POST to /stories/123/upvote
func HandleUpvoted ¶
HandleUpvoted displays a list of stories the user has upvoted in the past
func TweetStory ¶
TweetStory tweets the given story
func TweetTopStory ¶
TweetTopStory tweets the top story
Types ¶
This section is empty.