embeddedmongo

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string) error

func Download

func Download(fileName string, workDir string, url string) (err error)

func Extract

func Extract(d *Distribution, command Command) (string, error)

func GetDistributionName

func GetDistributionName(d *Distribution) string

func GetDistributionUrl

func GetDistributionUrl(d *Distribution) string

func GetTmpDir

func GetTmpDir(d *Distribution) string

func GetWorkDir

func GetWorkDir(d *Distribution) string

Types

type Command

type Command int
const (
	Mongod Command = iota
)

type Configuration

type Configuration struct {
	Version Version
	Dir     string
}

type Distribution

type Distribution struct {
	Configuration
	Url       string
	Os        string
	Platform  string
	Extension string
	Tmp       string
}

func NewDistribution

func NewDistribution(configuration Configuration) *Distribution

type Process

type Process struct {
	Pid int
	Tmp string
	// contains filtered or unexported fields
}

func NewProcess

func NewProcess(app string, dir string) (*Process, error)

func (*Process) Stop

func (p *Process) Stop() error

type Version

type Version string
const (
	V3_4_1 Version = "3.4.1"
)

Directories

Path Synopsis
+build linux,386 +build linux,386 +build darwin,386 +build darwin,386 +build windows,386 +build windows,amd64
+build linux,386 +build linux,386 +build darwin,386 +build darwin,386 +build windows,386 +build windows,amd64

Jump to

Keyboard shortcuts

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