Documentation ¶
Overview ¶
vtctlclient contains the generic client side of the remote vtctl protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterVtctlClientFactory ¶
func RegisterVtctlClientFactory(name string, factory VtctlClientFactory)
RegisterVtctlClientFactory allows a client implementation to register itself
Types ¶
type VtctlClient ¶
type VtctlClient interface { // ExecuteVtctlCommand will execute the command remotely ExecuteVtctlCommand(args []string, actionTimeout, lockTimeout time.Duration) (<-chan *logutil.LoggerEvent, ErrFunc) // Close will terminate the connection. This object won't be // used after this. Close() }
VtctlClient defines the interface used to send remote vtctl commands
type VtctlClientFactory ¶
type VtctlClientFactory func(addr string, dialTimeout time.Duration) (VtctlClient, error)
VtctlClientFactory are registered by client implementations
Click to show internal directories.
Click to hide internal directories.