RegisteredAddresses returns all the service addresses for which there's an active client.
()
| 136 | |
| 137 | // RegisteredAddresses returns all the service addresses for which there's an active client. |
| 138 | func (p *Pool) RegisteredAddresses() []string { |
| 139 | result := []string{} |
| 140 | p.RLock() |
| 141 | defer p.RUnlock() |
| 142 | for addr := range p.clients { |
| 143 | result = append(result, addr) |
| 144 | } |
| 145 | return result |
| 146 | } |
| 147 | |
| 148 | // Count returns how many clients are in the cache |
| 149 | func (p *Pool) Count() int { |
no outgoing calls