postactions

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 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(w http.ResponseWriter, r *http.Request) error

HandleCreate handles the POST of the create form for posts

func HandleCreateShow

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

HandleCreateShow serves the create form via GET for posts.

func HandleDestroy

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

HandleDestroy responds to /posts/n/destroy by deleting the post.

func HandleIndex

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

HandleIndex displays a list of posts.

func HandleShow

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

HandleShow displays a single post.

func HandleShowBlog

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

HandleShowBlog responds to GET /blog

func HandleUpdate

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

HandleUpdate handles the POST of the form to update a post

func HandleUpdateShow

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

HandleUpdateShow renders the form to update a post.

Types

This section is empty.

Jump to

Keyboard shortcuts

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