Documentation ¶
Index ¶
- func HandleCreate(w http.ResponseWriter, r *http.Request) error
- func HandleCreateShow(w http.ResponseWriter, r *http.Request) error
- func HandleDestroy(w http.ResponseWriter, r *http.Request) error
- func HandleDownvote(w http.ResponseWriter, r *http.Request) error
- func HandleFlag(w http.ResponseWriter, r *http.Request) error
- func HandleIndex(w http.ResponseWriter, r *http.Request) error
- func HandleShow(w http.ResponseWriter, r *http.Request) error
- func HandleUpdate(w http.ResponseWriter, r *http.Request) error
- func HandleUpdateShow(w http.ResponseWriter, r *http.Request) error
- func HandleUpvote(w http.ResponseWriter, r *http.Request) error
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.
Click to show internal directories.
Click to hide internal directories.