Documentation
¶
Index ¶
Constants ¶
View Source
const ( RaftDir = "raft" RaftListen = ":7001" RaftLogLevel = "off" EtcdLogLevel = "error" EtcdPrefix = "/haproxy-lb" HAProxyService = "haproxy" HAProxyConfigFile = "/etc/haproxy/haproxy.cfg" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
LeaderHook string `yaml:"leaderHook,omitempty"`
FollowerHook string `yaml:"followerHook,omitempty"`
HAProxyConfig string `yaml:"haproxyConfig,omitempty"`
HAProxyService string `yaml:"haproxyService,omitempty"`
Failover *Failover `yaml:"failover"`
VIP VIP `yaml:"vip"`
Cluster Cluster `yaml:"cluster"`
APIServer APIServer `yaml:"apiServer"`
}
type Etcd ¶
type Etcd struct {
Endpoints []string `yaml:"endpoints"`
ClusterName string `yaml:"clusterName"`
Prefix string `yaml:"prefix,omitempty"`
Username string `yaml:"username,omitempty"`
Password string `yaml:"password,omitempty"`
TLS *TLS `yaml:"tls,omitempty"`
LogLevel string `yaml:"logLevel,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.