Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectMongodb ¶
ConnectMongodb returns a connection to a mongodb instance through a connection options without ssl being true in the configuration file
func ConnectMongodbTLS ¶
ConnectMongodbTLS returns a connection to a mongodb instance through a connection options with ssl set to true in the configuration file
func ConnectMongodbURL ¶
ConnectMongodbURL returns a connection to a mongodb instance through a connection string in the configuration file
func ConnectRedis ¶
ConnectRedis returns a connection to posgress instance
func CreateUniqueIndex ¶
func CreateUniqueIndex(c *mgo.Collection, data []string) error
CreateUniqueIndex creates a unque mogodb index
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.