gabookApiDatabase

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2015 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// DatabaseName is the application's database name, and that's all!
	DatabaseName = "gabook"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GaBookDB

type GaBookDB struct {
	Session  *mgo.Session
	Database *mgo.Database
}

GaBookDB holds references

func GetGaBookDB

func GetGaBookDB() *GaBookDB

GetGaBookDB is the singleton

func (*GaBookDB) Close

func (gbdb *GaBookDB) Close()

Close method closes database session

Jump to

Keyboard shortcuts

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