GetAddresses returns the addresses of all instances within the replication set. Returned slice order is not guaranteed.
()
| 535 | // GetAddresses returns the addresses of all instances within the replication set. Returned slice |
| 536 | // order is not guaranteed. |
| 537 | func (r ReplicationSet) GetAddresses() []string { |
| 538 | addrs := make([]string, 0, len(r.Instances)) |
| 539 | for _, desc := range r.Instances { |
| 540 | addrs = append(addrs, desc.Addr) |
| 541 | } |
| 542 | return addrs |
| 543 | } |
| 544 | |
| 545 | // GetAddressesWithout returns the addresses of all instances within the replication set while |
| 546 | // excluding the specified address. Returned slice order is not guaranteed. |
no outgoing calls