aboutsummaryrefslogtreecommitdiff
path: root/go/operation/list_masters.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/operation/list_masters.go')
-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) {