mongodb

package
v0.0.0-...-a288e68 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultBinDir               = "/usr/bin"
	DefaultTmpDirFallback       = "/tmp"
	DefaultConfigDirFallback    = "/etc"
	DefaultUser                 = "mongodb"
	DefaultGroup                = "root"
	DefaultWiredTigerCacheRatio = "0.5"
)
View Source
const (
	DefaultDirMode = os.FileMode(0700)
	DefaultKeyMode = os.FileMode(0400)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigDir            string
	BinDir               string
	TmpDir               string
	User                 string
	Group                string
	TotalMemoryMB        uint
	WiredTigerCacheRatio float64
}

type Mongod

type Mongod struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewMongod

func NewMongod(config *Config, procState chan *os.ProcessState) *Mongod

func (*Mongod) Initiate

func (m *Mongod) Initiate() error

func (*Mongod) IsStarted

func (m *Mongod) IsStarted() bool

func (*Mongod) Kill

func (m *Mongod) Kill() error

func (*Mongod) Name

func (m *Mongod) Name() string

func (*Mongod) Start

func (m *Mongod) Start() error

func (*Mongod) Wait

func (m *Mongod) Wait()

Jump to

Keyboard shortcuts

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