# README
mongo
import "github.com/coralproject/shelf/internal/platform/db/mongo"
Overview
Package mongo provides support for using MongoDB.
Index
- func New(url string, timeout time.Duration) (*mgo.Session, error)
- func Query(value interface{}) string
Package files
func New
func New(url string, timeout time.Duration) (*mgo.Session, error)
New creates a new master session. If no url is provided, it will defaul to localhost:27017. If a zero value timeout is specified, a timeout of 60sec will be used instead.
func Query
func Query(value interface{}) string
Query provides a string version of the value
Generated by godoc2md