Documentation ¶ Index ¶ Variables func NewConn() (*mongo.Client, error) Constants ¶ This section is empty. Variables ¶ View Source var ( InvalidMongoDBConn = errors.New("connection to db not initialized correctly") DBNoConnected = errors.New("ping to db no generate any response") ) Functions ¶ func NewConn ¶ func NewConn() (*mongo.Client, error) NewConn creates a new mongodb connection/* Types ¶ This section is empty. Source Files ¶ View all Source files mongo.go Directories ¶ Show internal Expand all Path Synopsis support Click to show internal directories. Click to hide internal directories.