Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
* * Repo hold different datasources * Initialize Repo on each request
func (*Repo) AddViewToArticle ¶
AddViewToArticle adds new view to article in db
func (*Repo) CreateArticle ¶
CreateArticle creates new article in db
func (*Repo) GetArticle ¶
GetArticle fetchs article from db
func (*Repo) GetMgSession ¶
func (repo *Repo) GetMgSession() (*mgo.Database, *mgo.Session)
Click to show internal directories.
Click to hide internal directories.