radondb / xenon
Showing 2 of 58 files from the diff.
Other files ignored by Codecov

@@ -22,11 +22,17 @@
Loading
22 22
	// MUST: set in init
23 23
	// connection string(format ip:port)
24 24
	Endpoint string `json:"endpoint"`
25 +
	// if true, enable the HTTP APIs; else, disabled.
26 +
	EnableAPIs bool `json:"enable-apis"`
27 +
	// HTTP APIs address.
28 +
	PeerAddress string `json:"peer-address,omitempty"`
25 29
}
26 30
27 31
func DefaultServerConfig() *ServerConfig {
28 32
	return &ServerConfig{
29 -
		Endpoint: "127.0.0.1:8080",
33 +
		Endpoint:    "127.0.0.1:8080",
34 +
		EnableAPIs:  false,
35 +
		PeerAddress: ":6060",
30 36
	}
31 37
}
32 38

@@ -220,3 +220,18 @@
Loading
220 220
func (s *Server) Address() string {
221 221
	return s.conf.Server.Endpoint
222 222
}
223 +
224 +
// PeerAddress returns the peer address.
225 +
func (s *Server) PeerAddress() string {
226 +
	return s.conf.Server.PeerAddress
227 +
}
228 +
229 +
// MySQLAdmin returns the mysql admin user.
230 +
func (s *Server) MySQLAdmin() string {
231 +
	return s.conf.Mysql.Admin
232 +
}
233 +
234 +
// MySQLPasswd returns the mysql admin password.
235 +
func (s *Server) MySQLPasswd() string {
236 +
	return s.conf.Mysql.Passwd
237 +
}
Files Coverage
src 68%
Project Totals (48 files) 68%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading