aboutsummaryrefslogtreecommitdiff
path: root/go/operation
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2014-04-15 09:30:08 -0700
committerChris Lu <chris.lu@gmail.com>2014-04-15 09:30:08 -0700
commit7ad6cd35e88009bc9703f47ad5c9ab4f400110f8 (patch)
treef0cdf07a37b4a8eb73a362692216d14afad98f43 /go/operation
parentcb56322937904f4fe2e9aee37f1752ed27c30645 (diff)
downloadseaweedfs-7ad6cd35e88009bc9703f47ad5c9ab4f400110f8.tar.xz
seaweedfs-7ad6cd35e88009bc9703f47ad5c9ab4f400110f8.zip
Use type ClusterStatusResult for writing and reading results
Diffstat (limited to 'go/operation')
-rw-r--r--go/operation/list_masters.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/operation/list_masters.go b/go/operation/list_masters.go
index ade975c71..491c79f20 100644
--- a/go/operation/list_masters.go
+++ b/go/operation/list_masters.go
@@ -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) {