mongo

package
v0.0.0-...-12d1dba Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2014 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialMongoStore

func DialMongoStore(url string, dbuser, dbpass string) (rbac.FactStore, error)

DialMongoStore connects to MongoDB and uses an opinionated default for database and collection names.

func NewFactStore

func NewFactStore(session *mgo.Session, db *mgo.Database, collection string) (rbac.FactStore, error)

NewFactStore creates an rbac.FactStore over an established MongoDB session and database, using the given collection name for storing the facts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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