session

package
v0.0.0-...-ce71dfa Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2012 License: BSD-2-Clause-Views Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

func New

func New(session *mgo.Session, opt map[string]interface{}, hooks iface.Hooks, newDb func(session *mgo.Session, db *mgo.Database, opt map[string]interface{}, hooks iface.Hooks) iface.Db) *Session

This is an ugly hack to get around the ugly circular dependency. We will get rid of that later.

func (*Session) Db

func (s *Session) Db(name string) (iface.Db, error)

Jump to

Keyboard shortcuts

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