storyactions

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCode

func HandleCode(context router.Context) error

HandleCode displays a list of stories linking to repos (github etc) using gravity to order them responds to GET /stories/code

func HandleCreate

func HandleCreate(context router.Context) error

HandleCreate handles the POST of the create form for stories

func HandleCreateShow

func HandleCreateShow(context router.Context) error

HandleCreateShow serves the create form via GET for stories

func HandleDestroy

func HandleDestroy(context router.Context) error

HandleDestroy handles a DESTROY request for stories

func HandleDownvote

func HandleDownvote(context router.Context) error

HandleDownvote handles POST to /stories/123/downvote

func HandleFlag

func HandleFlag(context router.Context) error

HandleFlag handles POST to /stories/123/flag

func HandleHome

func HandleHome(context router.Context) error

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

func HandleIndex(context router.Context) error

HandleIndex displays a list of stories at /stories

func HandleShow

func HandleShow(context router.Context) error

HandleShow displays a single story

func HandleSiteMap

func HandleSiteMap(context router.Context) error

HandleSiteMap renders a site map of top stories

func HandleUpdate

func HandleUpdate(context router.Context) error

HandleUpdate handles the POST of the form to update a story

func HandleUpdateShow

func HandleUpdateShow(context router.Context) error

HandleUpdateShow renders the form to update a story

func HandleUpvote

func HandleUpvote(context router.Context) error

HandleUpvote handles POST to /stories/123/upvote

func HandleUpvoted

func HandleUpvoted(context router.Context) error

HandleUpvoted displays a list of stories the user has upvoted in the past

func TweetStory

func TweetStory(context schedule.Context, story *stories.Story)

TweetStory tweets the given story

func TweetTopStory

func TweetTopStory(context schedule.Context)

TweetTopStory tweets the top story

Types

This section is empty.

Jump to

Keyboard shortcuts

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