Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeVtctlV3 - vtctl v3
TypeVtctlV3 = "vtctl_v3"
)
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.