mongocontroller

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 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 Controller

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

Controller is a Mongo controller.

func New

func New(p Params) (*Controller, error)

New creates a new controller.

func (*Controller) Destroy

func (c *Controller) Destroy(deleteTempDir bool) error

Destroy destroys the controller. If deleteTempDir is true, all files created by the controller will be removed.

func (*Controller) GetIncludesIndexes

func (c *Controller) GetIncludesIndexes() bool

GetIncludesIndexes returns whether index names are returned in ListCollectionNames.

func (*Controller) GetPort

func (c *Controller) GetPort() int

GetPort returns the port on which MongoDB is listening.

type Params

type Params struct {
	// ExecutablePath is the path of the mongodb executable.
	ExecutablePath string
	// RootTempDir is where temporary files should be placed.
	RootTempDir string
	// UseWiredTiger determines whether the wired tiger storage engine should be used. By default
	// it is not used.
	UseWiredTiger bool
}

Params are Parameters for creating a MongoDB controller.

Jump to

Keyboard shortcuts

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