Documentation
¶
Index ¶
Constants ¶
View Source
const (
// TypeVtctlV6 - vtctl v6
TypeVtctlV6 = "vtctl_v6"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
// run vtctl command
RunCommand(ctx context.Context, args []string, timeout time.Duration) ([]string, error)
// close connection
Close() error
// start gc routine based on config string settings.
StartAndGC(config Config) error
}
Client interface contains all behaviors for vtctl client.
type Config ¶
type Config struct {
RetryOption *retry.Options `json:"option"`
Servers map[string]ServerInfo `json:"servers"`
HealthCheck time.Duration `json:"health_check"`
}
Config - client config
type ServerInfo ¶
type ServerInfo struct {
IP string `json:"name"`
Port int `json:"port"`
Weight int `json:"weight"`
}
ServerInfo - vtctld server info
Click to show internal directories.
Click to hide internal directories.