commentactions

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCreate

func HandleCreate(context router.Context) error

HandleCreate handles the POST of the create form for comments

func HandleCreateShow

func HandleCreateShow(context router.Context) error

HandleCreateShow serves the create form via GET for comments

func HandleDestroy

func HandleDestroy(context router.Context) error

HandleDestroy handles a DESTROY request for comments

func HandleDownvote

func HandleDownvote(context router.Context) error

HandleDownvote handles POST to /comments/123/downvote

func HandleFlag

func HandleFlag(context router.Context) error

HandleFlag handles POST to /comments/123/flag

func HandleIndex

func HandleIndex(context router.Context) error

HandleIndex displays a list of comments

func HandleShow

func HandleShow(context router.Context) error

HandleShow displays a single comment

func HandleUpdate

func HandleUpdate(context router.Context) error

HandleUpdate responds to POST /comments/update

func HandleUpdateShow

func HandleUpdateShow(context router.Context) error

HandleUpdateShow responds to GET /comments/update with the form to update a comment

func HandleUpvote

func HandleUpvote(context router.Context) error

HandleUpvote handles POST to /comments/123/upvote

Types

This section is empty.

Jump to

Keyboard shortcuts

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