func (c *Cluster) Hosts() []URI {
	hosts := make([]URI, 0, len(c.hosts))
	for i, host := range c.hosts {
		if c.okList[i] {
			hosts = append(hosts, *host)
		}
	}
	return hosts
}
func (c *Cluster) Hosts() []URI {
	hosts := make([]URI, 0, len(c.hosts))
	for i, host := range c.hosts {
		if c.okList[i] {
			hosts = append(hosts, *host)
		}
	}
	return hosts
}
func ( c * Cluster ) Hosts ( ) [ ] URI { hosts := make ( [ ] URI , 0 , len ( c . hosts ) ) for i , host := range c . hosts { if c . okList [ i ] { hosts = append ( hosts , * host ) } } return hosts }
// Hosts returns all available hosts in the cluster.
Hosts returns all available hosts in the cluster .