Documentation ¶
Index ¶
- type Post
- func (p *Post) CreatePost(w http.ResponseWriter, r *http.Request)
- func (p *Post) Delete(w http.ResponseWriter, r *http.Request)
- func (p *Post) UpdatePost(w http.ResponseWriter, r *http.Request)
- func (p *Post) ViewAllPosts(w http.ResponseWriter, r *http.Request)
- func (p *Post) ViewPost(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct {
// contains filtered or unexported fields
}
Post ...
func (*Post) CreatePost ¶
func (p *Post) CreatePost(w http.ResponseWriter, r *http.Request)
CreatePost a new post
func (*Post) UpdatePost ¶
func (p *Post) UpdatePost(w http.ResponseWriter, r *http.Request)
UpdatePost a post by id
func (*Post) ViewAllPosts ¶
func (p *Post) ViewAllPosts(w http.ResponseWriter, r *http.Request)
ViewAllPosts all post data
Click to show internal directories.
Click to hide internal directories.