embeddedmongo

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 11 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(d *Distribution) (file string, err error)

Download the distribution or report an error

func Extract

func Extract(d *Distribution) ([]string, error)

Extract the distribution and return the directory files list

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

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, url ...string) *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"
	DEFAULT_URL         = "https://fastdl.mongodb.org/"
)

Directories

Path Synopsis
Package uuid provides simple UUID generation.
Package uuid provides simple UUID generation.

Jump to

Keyboard shortcuts

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