article

package
v0.0.0-...-fb0b0ba Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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