Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg *ini.File
Cfg represents the pointer to configuration file
View Source
var DB *sqlx.DB
DB - Represents SQLX database connection
Functions ¶
func GetMongoCollection ¶
func GetMongoCollection(collectionName string) (*mgo.Collection, error)
GetMongoCollection gets a data collection
func GetMongoSession ¶
GetMongoSession gets connection to Mongo repo
Types ¶
type DbConnInfo ¶
type DbConnInfo struct { DBType string User string Pw string DBName string Host string Port string }
DbConnInfo - Database Connection information
var DBConnData *DbConnInfo
DBConnData - Value of database connection information
func LoadDbConfig ¶
func LoadDbConfig() (dbConnectionInfo *DbConnInfo)
LoadDbConfig - Loads specific database connection information
Click to show internal directories.
Click to hide internal directories.