repo

package
v0.0.0-...-449281a Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2015 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(s *mgo.Session)

Types

type Repository

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

func NewRepository

func NewRepository(dbName string) *Repository

func (*Repository) C

func (this *Repository) C(name string) *mgo.Collection

func (*Repository) Close

func (this *Repository) Close()

func (*Repository) CollectionNames

func (this *Repository) CollectionNames() ([]string, error)

func (*Repository) Insert

func (this *Repository) Insert(name string, docs ...interface{}) error

Jump to

Keyboard shortcuts

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