testisnullus commented on code in PR #1796:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1796#discussion_r1715391305
##########
session.go:
##########
@@ -780,6 +780,87 @@ func (s *Session) MapExecuteBatchCAS(batch *Batch, dest
map[string]interface{})
return applied, iter, iter.err
}
+// connectionType is a custom type that represents the different stages
+// of a client connection in a Cassandra cluster. It is used to filter and
categorize
+// connections based on their current state.
+type connectionType string
+
+const (
+ Ready connectionType = "ready"
+ Connecting connectionType = "connecting"
+ Idle connectionType = "idle"
+ Closed connectionType = "closed"
+ Failed connectionType = "failed"
+)
+
+// ClientConnection represents a client connection to a Cassandra node. It
holds detailed
+// information about the connection, including the client address, connection
stage, driver details,
+// and various configuration options.
+type ClientConnection struct {
+ Address string `json:"address"`
+ Port int `json:"port"`
+ ConnectionStage string `json:"connection_stage"`
+ DriverName string `json:"driver_name"`
+ DriverVersion string `json:"driver_version"`
+ Hostname string `json:"hostname"`
+ KeyspaceName *string `json:"keyspace_name"`
+ ProtocolVersion int `json:"protocol_version"`
+ RequestCount int `json:"request_count"`
+ SSLCipherSuite *string `json:"ssl_cipher_suite"`
+ SSLEnabled bool `json:"ssl_enabled"`
+ SSLProtocol *string `json:"ssl_protocol"`
+ Username string `json:"username"`
+}
Review Comment:
Not needed, removed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]