Versions in this module Expand all Collapse all v1 v1.0.4 Mar 5, 2020 Changes in this version type ConfigurationSettings + BackendMySQLHost string + BackendMySQLPassword string + BackendMySQLPort int + BackendMySQLSchema string + BackendMySQLUser string + DataCenter string + Domain string + Environment string + ShareDomain string type HAProxyConfigurationSettings + Addresses string + func (settings *HAProxyConfigurationSettings) GetProxyAddresses() (addresses [](*url.URL), err error) + type HostPort struct + Host string + Port int + func ParseHostPort(address string) (hostPort *HostPort, err error) + func (h *HostPort) String() string + func (h *HostPort) URL() *url.URL type MySQLClusterConfigurationSettings + CacheMillis int + HttpCheckPath string + HttpCheckPort int + IgnoreHosts []string + IgnoreHostsThreshold float64 + VitessSettings VitessConfigurationSettings type MySQLConfigurationSettings + CacheMillis int + HttpCheckPath string + HttpCheckPort int + IgnoreDialTcpErrors bool + IgnoreHosts []string + IgnoreHostsThreshold float64 + type VitessConfigurationSettings struct + API string + Keyspace string + Shard string + func (settings *VitessConfigurationSettings) IsEmpty() bool v1.0.3 May 24, 2018 v1.0.2 Oct 9, 2017 v1.0.0 Sep 11, 2017 Changes in this version + const DefaultMySQLPort + func Reset() + type Configuration struct + func Instance() *Configuration + func (config *Configuration) Read(fileNames ...string) error + func (config *Configuration) Reload() error + type ConfigurationSettings struct + DefaultRaftPort int + ListenPort int + MemcachePath string + MemcacheServers []string + RaftBind string + RaftDataDir string + RaftNodes []string + Stores StoresSettings + func Settings() *ConfigurationSettings + type HAProxyConfigurationSettings struct + Host string + PoolName string + Port int + func (settings *HAProxyConfigurationSettings) IsEmpty() bool + type MySQLClusterConfigurationSettings struct + HAProxySettings HAProxyConfigurationSettings + IgnoreHostsCount int + MetricQuery string + Password string + Port int + StaticHostsSettings StaticHostsConfigurationSettings + ThrottleThreshold float64 + User string + type MySQLConfigurationSettings struct + Clusters map[string](*MySQLClusterConfigurationSettings) + IgnoreHostsCount int + MetricQuery string + Password string + Port int + ThrottleThreshold float64 + User string + type StaticHostsConfigurationSettings struct + Hosts []string + func (settings *StaticHostsConfigurationSettings) IsEmpty() bool + type StoresSettings struct + MySQL MySQLConfigurationSettings