mysqltest

package
v0.0.0-...-fadc4e5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2015 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlTest

type MysqlTest struct {
	Name string
	// contains filtered or unexported fields
}

func NewMysqlTest

func NewMysqlTest(name string, host string, port int, user string, pass string, interval int, timeout int, filedirectory string, jsonlog *os.File) *MysqlTest

func (*MysqlTest) CheckReplication

func (t *MysqlTest) CheckReplication() (int64, string, error)

NOTE: only works if one master

func (*MysqlTest) Connect

func (t *MysqlTest) Connect() error

func (*MysqlTest) CountConnections

func (t *MysqlTest) CountConnections() (int64, error)

func (*MysqlTest) Disconnect

func (t *MysqlTest) Disconnect()

func (*MysqlTest) GetWeight

func (t *MysqlTest) GetWeight(val int64, max int64) string

func (*MysqlTest) JsonLog

func (t *MysqlTest) JsonLog(msg string)

This is a very dumb json func. If more interesting stuff needs to be logged, pass it in as a map[string]interface{} and then detect value as int, string, w/e before marshaling json.

func (*MysqlTest) Run

func (t *MysqlTest) Run()

func (*MysqlTest) RunOnce

func (t *MysqlTest) RunOnce() *MysqlTestResult

func (*MysqlTest) RunOnceWithTimeout

func (t *MysqlTest) RunOnceWithTimeout() *MysqlTestResult

func (*MysqlTest) WriteHttpResult

func (t *MysqlTest) WriteHttpResult(testname string, passed bool, description string)

func (*MysqlTest) WriteResult

func (t *MysqlTest) WriteResult(res *MysqlTestResult)

takes the MysqlTestResult and writes corresponding files

func (*MysqlTest) WriteTextResult

func (t *MysqlTest) WriteTextResult(testname string, status string)

type MysqlTestResult

type MysqlTestResult struct {
	Entries map[string]string
}

func (*MysqlTestResult) AddTextResult

func (r *MysqlTestResult) AddTextResult(subject string, content string)

Jump to

Keyboard shortcuts

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