Documentation ¶
Index ¶
- Constants
- type ArticleController
- func (ac ArticleController) CreateArticle(c echo.Context) error
- func (ac ArticleController) DeleteArticleById(c echo.Context) error
- func (ac ArticleController) GetArticleById(c echo.Context) error
- func (ac ArticleController) GetArticlesOfUser(c echo.Context) error
- func (ac ArticleController) UpdateArticleById(c echo.Context) error
Constants ¶
View Source
const (
ARTICLE_COLLECTION_NAME = "articles"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleController ¶
type ArticleController struct { Session *mgo.Session DBName string }
func NewArticleController ¶
func NewArticleController(s *mgo.Session, dbName string) *ArticleController
func (ArticleController) CreateArticle ¶
func (ac ArticleController) CreateArticle(c echo.Context) error
func (ArticleController) DeleteArticleById ¶
func (ac ArticleController) DeleteArticleById(c echo.Context) error
func (ArticleController) GetArticleById ¶
func (ac ArticleController) GetArticleById(c echo.Context) error
func (ArticleController) GetArticlesOfUser ¶
func (ac ArticleController) GetArticlesOfUser(c echo.Context) error
func (ArticleController) UpdateArticleById ¶
func (ac ArticleController) UpdateArticleById(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.