vttest

package
v2.0.0-beta.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package vttest provides the functionality to bring up a test cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MemcachedPath

func MemcachedPath() string

MemcachedPath returns the path to the memcached binary.

Types

type Handle

type Handle struct {
	Data map[string]interface{}
	// contains filtered or unexported fields
}

Handle allows you to interact with the processes launched by vttest.

func LaunchMySQL

func LaunchMySQL(dbName, schema string, verbose bool) (hdl *Handle, err error)

LaunchMySQL launches just a MySQL instance with the specified db name. The schema is specified as a string instead of a file.

func LaunchVitess

func LaunchVitess(topo, schemaDir string, verbose bool) (hdl *Handle, err error)

LaunchVitess launches a vitess test cluster.

func (*Handle) MySQLConnParams

func (hdl *Handle) MySQLConnParams() (sqldb.ConnParams, error)

MySQLConnParams builds the MySQL connection params. It's valid only if you used LaunchMySQL.

func (*Handle) TearDown

func (hdl *Handle) TearDown() error

TearDown tears down the launched processes.

Directories

Path Synopsis
Package fakesqldb provides a fake implementation of sqldb.Conn
Package fakesqldb provides a fake implementation of sqldb.Conn

Jump to

Keyboard shortcuts

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