beemgo

package module
v0.0.0-...-3112ff5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2014 License: BSD-2-Clause Imports: 3 Imported by: 0

README

beemgo

Mongo adapter for Beemo

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	beego.Controller
	Session *mgo.Session
}

func (*Controller) Finish

func (c *Controller) Finish()

func (*Controller) Prepare

func (c *Controller) Prepare()

type Service

type Service struct {
	Url  string
	Open int
	// contains filtered or unexported fields
}

Service manages the pool of mongo connections.

func (*Service) Close

func (s *Service) Close(m *mgo.Session)

Close an open session to free up space in the pool.

func (*Service) New

func (s *Service) New()

New bootstraps the Mongo pool making it possible to open sessions.

func (*Service) Session

func (s *Service) Session() *mgo.Session

Session attempts to create a session in the pool.

Jump to

Keyboard shortcuts

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