Open Wri0810 opened 2 years ago
Hello!
Currently gocql does not have a method similar to getState
in the Java driver. However, there are observers you can use to track connections, see for example ConnectObserver. Does that work for your use case?
In java we use import com.datastax.driver.core.Session;
where from session.getStatus() we can get host name which are currently connected https://docs.datastax.com/en/drivers/java/2.2/com/datastax/driver/core/Session.html
Do we have similar implementation for any gocql cluster session get host name to which it is connected ?