Use type ClusterStatusResult for writing and reading results

This commit is contained in:
Chris Lu
2014-04-15 09:30:08 -07:00
parent cb56322937
commit 7ad6cd35e8
3 changed files with 16 additions and 16 deletions

View File

@@ -7,9 +7,9 @@ import (
)
type ClusterStatusResult struct {
IsLeader bool
Leader string
Peers []string
IsLeader bool `json:"IsLeader,omitempty"`
Leader string `json:"Leader,omitempty"`
Peers []string `json:"Peers,omitempty"`
}
func ListMasters(server string) ([]string, error) {