etcdserver/api/membership/cluster.go
func (c *RaftCluster) PeerURLs() []string {
	c.Lock()
	defer c.Unlock()
	urls := make([]string, 0)
	for _, p := range c.members {
		urls = append(urls, p.PeerURLs...)
	}
	sort.Strings(urls)
	return urls
}
func (c *RaftCluster) PeerURLs() []string {
	c.Lock()
	defer c.Unlock()
	urls := make([]string, 0)
	for _, p := range c.members {
		urls = append(urls, p.PeerURLs...)
	}
	sort.Strings(urls)
	return urls
}
func ( c * RaftCluster ) PeerURLs ( ) [ ] string { c . Lock ( ) defer c . Unlock ( ) urls := make ( [ ] string , 0 ) for _ , p := range c . members { urls = append ( urls , p . PeerURLs ... ) } sort . Strings ( urls ) return urls }
// PeerURLs returns a list of all peer addresses.
// The returned list is sorted in ascending lexicographical order.
PeerURLs returns a list of all peer addresses . The returned list is sorted in ascending lexicographical order .