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

@@ -21,12 +21,14 @@
Loading
21 21
type ServerConfig struct {
22 22
	// MUST: set in init
23 23
	// connection string(format ip:port)
24 -
	Endpoint string `json:"endpoint"`
24 +
	Endpoint    string `json:"endpoint"`
25 +
	PeerAddress string `json:"peer-address,omitempty"`
25 26
}
26 27
27 28
func DefaultServerConfig() *ServerConfig {
28 29
	return &ServerConfig{
29 -
		Endpoint: "127.0.0.1:8080",
30 +
		Endpoint:    "127.0.0.1:8080",
31 +
		PeerAddress: "127.0.0.1:6060",
30 32
	}
31 33
}
32 34

@@ -220,3 +220,8 @@
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 +
}
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