We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1c2788 commit 195155eCopy full SHA for 195155e
client.go
@@ -921,6 +921,21 @@ type clientConn struct {
921
lastUseTime time.Time
922
}
923
924
+// CreatedTime returns net.Conn the client.
925
+func (cc *clientConn) Conn() net.Conn {
926
+ return cc.c
927
+}
928
+
929
+// CreatedTime returns time the client was created.
930
+func (cc *clientConn) CreatedTime() time.Time {
931
+ return cc.createdTime
932
933
934
+// LastUseTime returns time the client was last used.
935
+func (cc *clientConn) LastUseTime() time.Time {
936
+ return cc.lastUseTime
937
938
939
var startTimeUnix = time.Now().Unix()
940
941
// LastUseTime returns time the client was last used.
0 commit comments