bundledmongo

package
v2.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

Runner provides an interface to start & stop the mongod executable.

func CreateMongoRunner

func CreateMongoRunner(databasePath string, localPort int) *Runner

CreateMongoRunner creates a new MongoRunner but doesn't start it yet.

func (*Runner) Close

func (runner *Runner) Close(session *mgo.Session)

Close gracefully stops mongod.

func (*Runner) Go

func (runner *Runner) Go() error

Go starts mongodb and keeps it running in the background.

Jump to

Keyboard shortcuts

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