dbhandler

package
v0.0.0-...-44acce7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package dbhandler ----> different DB functions

func used as well in https://github.com/remotejob/kaukotyoeu_utils

List

Index

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(session mgo.Session, site string) []domains.Sitemap_from_db

GetAllSitemaplinks get all articles for sitemap.xml

func GetAllUseful

func GetAllUseful(session mgo.Session, themes string, locale string) []domains.Gphrase

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

func InsertLogRecord(session mgo.Session, record domains.LogRecord)

InsertLogRecord InsertLogRecord into database

Types

This section is empty.

Jump to

Keyboard shortcuts

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