dbs

package
v0.0.0-...-7cf9709 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectMongodb

func ConnectMongodb() *mgo.Session

ConnectMongodb returns a connection to a mongodb instance through a connection options without ssl being true in the configuration file

func ConnectMongodbTLS

func ConnectMongodbTLS() *mgo.Session

ConnectMongodbTLS returns a connection to a mongodb instance through a connection options with ssl set to true in the configuration file

func ConnectMongodbURL

func ConnectMongodbURL(url string) *mgo.Session

ConnectMongodbURL returns a connection to a mongodb instance through a connection string in the configuration file

func ConnectRedis

func ConnectRedis() *redis.Client

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.

Jump to

Keyboard shortcuts

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