github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/rpc/client/conn.go (about) 1 package client 2 3 import ( 4 "io" 5 ) 6 7 // Conn returns underlying connection. 8 // 9 // Returns non-nil result after the first Init() call 10 // completed without a connection error. 11 // 12 // Client should not be used after Close() call 13 // on the connection: behavior is undefined. 14 func (c *Client) Conn() io.Closer { 15 return c.conn 16 }