mysqlctlclient

package
v0.0.0-...-bc668d9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2015 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package mysqlctlclient contains the generic client side of the remote mysqlctl protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMysqlctlClientFactory

func RegisterMysqlctlClientFactory(name string, factory MysqlctlClientFactory)

RegisterMysqlctlClientFactory allows a client implementation to register itself

Types

type MysqlctlClient

type MysqlctlClient interface {
	// Start calls Mysqld.Start remotely.
	Start(mysqlWaitTime time.Duration) error
	// Shutdown calls Mysqld.Shutdown remotely.
	Shutdown(waitForMysqld bool, mysqlWaitTime time.Duration) error

	// Close will terminate the connection. This object won't be used anymore.
	Close()
}

MysqlctlClient defines the interface used to send remote mysqlctl commands

func New

func New(network, addr string, dialTimeout time.Duration) (MysqlctlClient, error)

New creates a client implementation as specified by a flag.

type MysqlctlClientFactory

type MysqlctlClientFactory func(network, addr string, dialTimeout time.Duration) (MysqlctlClient, error)

MysqlctlClientFactory functions are registered by client implementations.

Jump to

Keyboard shortcuts

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