RegisteredAddresses returns all the service addresses for which there's an active client.
()
| 219 | |
| 220 | // RegisteredAddresses returns all the service addresses for which there's an active client. |
| 221 | func (p *Pool) RegisteredAddresses() []string { |
| 222 | result := []string{} |
| 223 | p.RLock() |
| 224 | defer p.RUnlock() |
| 225 | for addr := range p.members { |
| 226 | result = append(result, addr) |
| 227 | } |
| 228 | return result |
| 229 | } |
| 230 | |
| 231 | // Count returns how many clients are in the cache |
| 232 | func (p *Pool) Count() int { |
no outgoing calls