Documentation
¶
Overview ¶
Package controllers translates HTTP requests into PostService calls. The service is framework-agnostic; only this file knows about net/http.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostController ¶
type PostController struct {
Service *services.PostService
}
func NewPostController ¶
func NewPostController(conn *database.Connection) *PostController
func (*PostController) Destroy ¶
func (c *PostController) Destroy(w http.ResponseWriter, r *http.Request)
func (*PostController) Index ¶
func (c *PostController) Index(w http.ResponseWriter, r *http.Request)
func (*PostController) Show ¶
func (c *PostController) Show(w http.ResponseWriter, r *http.Request)
func (*PostController) Store ¶
func (c *PostController) Store(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.