commentactions

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCreate

func HandleCreate(w http.ResponseWriter, r *http.Request) error

HandleCreate handles the POST of the create form for comments

func HandleCreateShow

func HandleCreateShow(w http.ResponseWriter, r *http.Request) error

HandleCreateShow serves the create form via GET for comments.

func HandleDestroy

func HandleDestroy(w http.ResponseWriter, r *http.Request) error

HandleDestroy responds to /comments/n/destroy by deleting the comment.

func HandleDownvote

func HandleDownvote(w http.ResponseWriter, r *http.Request) error

HandleDownvote handles POST to /comments/123/downvote

func HandleFlag

func HandleFlag(w http.ResponseWriter, r *http.Request) error

HandleFlag handles POST to /comments/123/flag

func HandleIndex

func HandleIndex(w http.ResponseWriter, r *http.Request) error

HandleIndex displays a list of comments.

func HandleShow

func HandleShow(w http.ResponseWriter, r *http.Request) error

HandleShow displays a single comment.

func HandleUpdate

func HandleUpdate(w http.ResponseWriter, r *http.Request) error

HandleUpdate handles the POST of the form to update a comment

func HandleUpdateShow

func HandleUpdateShow(w http.ResponseWriter, r *http.Request) error

HandleUpdateShow renders the form to update a comment.

func HandleUpvote

func HandleUpvote(w http.ResponseWriter, r *http.Request) 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