Documentation ¶
Index ¶
- func GetHellos(w http.ResponseWriter, r *http.Request)
- type ArticleController
- func (ac *ArticleController) DeleteById(w http.ResponseWriter, r *http.Request)
- func (ac *ArticleController) GetById(w http.ResponseWriter, r *http.Request)
- func (ac *ArticleController) ListArticles(w http.ResponseWriter, r *http.Request)
- func (ac *ArticleController) PostArticle(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArticleController ¶
type ArticleController struct {
// contains filtered or unexported fields
}
func NewArticleController ¶
func NewArticleController(articleDAO *dao.ArticleDAO) *ArticleController
func (*ArticleController) DeleteById ¶
func (ac *ArticleController) DeleteById(w http.ResponseWriter, r *http.Request)
func (*ArticleController) GetById ¶
func (ac *ArticleController) GetById(w http.ResponseWriter, r *http.Request)
func (*ArticleController) ListArticles ¶
func (ac *ArticleController) ListArticles(w http.ResponseWriter, r *http.Request)
func (*ArticleController) PostArticle ¶
func (ac *ArticleController) PostArticle(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.