database

package
v0.0.0-...-d69ef46 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Cache is the key/value cache store used to reduce database trafic.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Session *mgo.Session
	DBName  string
}

Connection defines dependencies required for database access.

func Connect

func Connect(dataSourceName string, databaseName string) (connection Connection, err error)

Connect initializes the MongoDB session.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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