forked from TrueCloudLab/frostfs-sdk-go
[#276] Merge repo with frostfs-api-go
Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
This commit is contained in:
parent
5361f0eceb
commit
6ce73790ea
337 changed files with 66666 additions and 283 deletions
24
api/rpc/client/conn.go
Normal file
24
api/rpc/client/conn.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Conn is an interface for grpc client connection.
|
||||
type Conn interface {
|
||||
grpc.ClientConnInterface
|
||||
io.Closer
|
||||
}
|
||||
|
||||
// Conn returns underlying connection.
|
||||
//
|
||||
// Returns non-nil result after the first Init() call
|
||||
// completed without a connection error.
|
||||
//
|
||||
// Client should not be used after Close() call
|
||||
// on the connection: behavior is undefined.
|
||||
func (c *Client) Conn() io.Closer {
|
||||
return c.conn
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue