mgostore

package
v0.0.0-...-947ae47 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

A Database provides a wrapper around a single mongodb database that can be used as the persistent storage for the various types of store required by the identity service.

func NewDatabase

func NewDatabase(db *mgo.Database) (*Database, error)

NewDatabase creates a new Database using the given *mgo.Database. The given Database's underlying session will be copied. The Database must be closed when finished with.

func (*Database) BakeryRootKeyStore

func (d *Database) BakeryRootKeyStore(policy mgorootkeystore.Policy) bakery.RootKeyStore

BakeryRootKeyStore returns a new bakery.RootKeyStore implementation using this database for persistent storage.

func (*Database) Close

func (d *Database) Close()

Close cleans up resources associated with the database.

func (*Database) DebugStatusCheckerFuncs

func (d *Database) DebugStatusCheckerFuncs() []debugstatus.CheckerFunc

DebugStatusCheckerFuncs returns a set of debugstatus.CheckerFuncs that can be used to provide a status of the database in the /debug/status endpoint.

func (*Database) MeetingStore

func (d *Database) MeetingStore() meeting.Store

MeetingStore returns a new meeting.Store implementation using this database for persistent storage.

func (*Database) ProviderDataStore

func (d *Database) ProviderDataStore() store.ProviderDataStore

ProviderDataStore returns a new store.ProviderDataStore implementation using this database for persistent storage.

func (*Database) Store

func (d *Database) Store() store.Store

Store returns a new store.Store implementation using this database for persistent storage.

Jump to

Keyboard shortcuts

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