mongo

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coll

type Coll struct {
	// contains filtered or unexported fields
}

func (Coll) Session

func (c Coll) Session(work func(*mgo.Collection))

type DB

type DB struct {
	// contains filtered or unexported fields
}

func (DB) C

func (db DB) C(name string) Coll

func (DB) Session

func (db DB) Session(work func(*mgo.Database))

type Sess

type Sess struct {
	// contains filtered or unexported fields
}

func Get

func Get(dbAddr string) Sess

func New

func New(dbAddr string) Sess

func Session

func Session(name string) Sess

func (Sess) DB

func (s Sess) DB(name string) DB

func (Sess) Session

func (s Sess) Session(work func(*mgo.Session))

Jump to

Keyboard shortcuts

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