mongo

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = mgo.ErrNotFound
)

ErrorList =

Functions

func Close

func Close()

Close - close the database connect

func Con

func Con(c Config) error

Con - connect the Mongo database

func M

func M() *mgo.Session

M -

Types

type Config added in v0.2.2

type Config struct {
	Host     string
	User     string
	Password string
	Database string
	AppName  string
	SSL      bool
}

Config -

type Session added in v0.2.3

type Session interface {
	Close() error
}

Session -

Jump to

Keyboard shortcuts

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