mongodb

package
v0.0.0-...-62da45a Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mongodb provide connection pool to MongoDB

Typycal use case:

mcp := mongodb.Create("mongodb://localhost:27017", 20)
conn := mcp.GetRandom()
collection := conn.Database("test").Collection("users")
mcp.Destroy()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(murl string, n int) (mcp, error)

Create MongoDB connections pool with 'n' connections

Types

This section is empty.

Jump to

Keyboard shortcuts

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