Skip to content

Commit 026b9c6

Browse files
Code format
1 parent cb062d5 commit 026b9c6

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

pkg/config/config.go

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -92,38 +92,38 @@ func (config *Configuration) Reload() error {
9292
// Some of the settinges have reasonable default values, and some other
9393
// (like database credentials) are strictly expected from user.
9494
type ConfigurationSettings struct {
95-
ListenPort int
96-
DataCenter string
97-
Environment string
98-
Domain string
99-
ShareDomain string
100-
RaftBind string
101-
RaftDataDir string
102-
DefaultRaftPort int // if a RaftNodes entry does not specify port, use this one
103-
RaftNodes []string // Raft nodes to make initial connection with
104-
BackendMySQLHost string
105-
BackendMySQLPort int
106-
BackendMySQLSchema string
107-
BackendMySQLUser string
108-
BackendMySQLPassword string
109-
MemcacheServers []string // if given, freno will report to aggregated values to given memcache
110-
MemcachePath string // use as prefix to metric path in memcache key, e.g. if `MemcachePath` is "myprefix" the key would be "myprefix/mysql/maincluster". Default: "freno"
95+
ListenPort int
96+
DataCenter string
97+
Environment string
98+
Domain string
99+
ShareDomain string
100+
RaftBind string
101+
RaftDataDir string
102+
DefaultRaftPort int // if a RaftNodes entry does not specify port, use this one
103+
RaftNodes []string // Raft nodes to make initial connection with
104+
BackendMySQLHost string
105+
BackendMySQLPort int
106+
BackendMySQLSchema string
107+
BackendMySQLUser string
108+
BackendMySQLPassword string
109+
MemcacheServers []string // if given, freno will report to aggregated values to given memcache
110+
MemcachePath string // use as prefix to metric path in memcache key, e.g. if `MemcachePath` is "myprefix" the key would be "myprefix/mysql/maincluster". Default: "freno"
111111
VitessAPITimeoutSecs int // timeout for Vitess vtctld HTTP API
112-
Stores StoresSettings
112+
Stores StoresSettings
113113
}
114114

115115
func newConfigurationSettings() *ConfigurationSettings {
116116
return &ConfigurationSettings{
117-
ListenPort: 8087,
118-
RaftBind: "127.0.0.1:10008",
119-
RaftDataDir: "",
120-
DefaultRaftPort: 0,
121-
RaftNodes: []string{},
122-
BackendMySQLHost: "",
123-
BackendMySQLSchema: "",
124-
BackendMySQLPort: 3306,
125-
MemcacheServers: []string{},
126-
MemcachePath: "freno",
117+
ListenPort: 8087,
118+
RaftBind: "127.0.0.1:10008",
119+
RaftDataDir: "",
120+
DefaultRaftPort: 0,
121+
RaftNodes: []string{},
122+
BackendMySQLHost: "",
123+
BackendMySQLSchema: "",
124+
BackendMySQLPort: 3306,
125+
MemcacheServers: []string{},
126+
MemcachePath: "freno",
127127
VitessAPITimeoutSecs: 5,
128128
//Debug: false,
129129
//ListenSocket: "",

0 commit comments

Comments
 (0)