package
0.4.8
Repository: https://github.com/coralproject/shelf.git
Documentation: pkg.go.dev

# README

mongo

import "github.com/coralproject/shelf/internal/platform/db/mongo"

Overview

Package mongo provides support for using MongoDB.

Index

Package files

mongo.go

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

# Functions

New creates a new master session.
Query provides a string version of the value.