Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoDBContainer ¶
MongoDBContainer extends docker.Service to provide on demand MongoDB connections
func NewMongoDBContainer ¶
NewMongoDBContainer starts a new instance of MongoDB with Docker
func (MongoDBContainer) GetMongoDBURI ¶
func (m MongoDBContainer) GetMongoDBURI() string
GetMongoDBURI returns the MongoDB URI for connecting to the container
func (MongoDBContainer) NewSession ¶
func (m MongoDBContainer) NewSession() (*mgo.Session, error)
NewSession returns a new mgo.Session object dialed into to this server
Click to show internal directories.
Click to hide internal directories.