DiscoveredServers returns only the server urls that have been discovered after a connection has been established. If authentication is enabled, use UserInfo or Token when connecting with these urls.
()
| 6236 | // after a connection has been established. If authentication is enabled, |
| 6237 | // use UserInfo or Token when connecting with these urls. |
| 6238 | func (nc *Conn) DiscoveredServers() []string { |
| 6239 | nc.mu.RLock() |
| 6240 | defer nc.mu.RUnlock() |
| 6241 | return nc.getServers(true) |
| 6242 | } |
| 6243 | |
| 6244 | // Status returns the current state of the connection. |
| 6245 | func (nc *Conn) Status() Status { |