Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a store driver that keeps features and gates in mongoDB.
func NewDriverWithCollection ¶
func NewDriverWithCollection(c *mgo.Collection) *Driver
NewDriverWithConnection initializes a new mongoDB driver with a given collection. This factory allows you to reused a collection from a session open in your program.
func (*Driver) Configure ¶
Configure configures the mongodb driver. These are the options for this driver:
- url: string url to the mongoDB cluster (required)
- database: database name (optional - default to the database in the url, or "test" if also empty)
- collection: collection name (optional - default "flipper")
This function doesn't do anything if the driver already has a collection configured.
Click to show internal directories.
Click to hide internal directories.