Documentation ¶
Overview ¶
Package dbhandler ----> different DB functions
func used as well in https://github.com/remotejob/kaukotyoeu_utils
List
Index ¶
- func GetAllForStatic(session mgo.Session, site string) []domains.Articlefull
- func GetAllSitemaplinks(session mgo.Session, site string) []domains.Sitemap_from_db
- func GetAllUseful(session mgo.Session, themes string, locale string) []domains.Gphrase
- func GetOneArticle(session mgo.Session, site string, stitle string) []domains.Articlefull
- func InsertLogRecord(session mgo.Session, record domains.LogRecord)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllForStatic ¶
func GetAllForStatic(session mgo.Session, site string) []domains.Articlefull
GetAllForStatic get database records for static pages
func GetAllSitemaplinks ¶
func GetAllSitemaplinks(session mgo.Session, site string) []domains.Sitemap_from_db
GetAllSitemaplinks get all articles for sitemap.xml
func GetAllUseful ¶
GetAllUseful probably not used
func GetOneArticle ¶
func GetOneArticle(session mgo.Session, site string, stitle string) []domains.Articlefull
GetOneArticle get one artice by mtitle
func InsertLogRecord ¶
InsertLogRecord InsertLogRecord into database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.