mgostorage

package
v0.0.0-...-fed95e0 Latest Latest
Warning

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

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

Documentation

Overview

Package mgostorage provides an implementation of the bakery Storage interface that uses MongoDB to store items.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *mgo.Collection) (bakery.Storage, error)

New returns an implementation of Storage that stores all items in MongoDB. It never returns an error (the error return is for backward compatibility with a previous version that could return an error).

Note that the caller is responsible for closing the mgo session associated with the collection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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