// MasterIPs returns a list of advertise IPs of master nodes.
MasterIPs returns a list of advertise IPs of master nodes.
// MasterIPs returns a list of advertise IPs of master nodes .
func (r Servers) MasterIPs() (ips []string) {
	for _, master := range r.Masters() {
		ips = append(ips, master.AdvertiseIP)
	}
	return ips
}
func ( r Servers ) MasterIPs ( ) ( ips [ ] string ) { for _ , master := range r . Masters ( ) { ips = append ( ips , master . AdvertiseIP ) } return ips }
MasterIPs returns a list of advertise IPs of master nodes.
MasterIPs returns a list of advertise IPs of master nodes .