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
type MysqlctlClientFactory ¶
type MysqlctlClientFactory func(network, addr string, dialTimeout time.Duration) (MysqlctlClient, error)
MysqlctlClientFactory functions are registered by client implementations.
Click to show internal directories.
Click to hide internal directories.