forked from TrueCloudLab/frostfs-sdk-go
9dcff95a29
Define base `Status` interface. Provide the functionality to distinguish success and failure returns. Provide functionality to transport statuses over NeoFS API V2 protocol. Support success `OK` and failure `INTERNAL` returns. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
17 lines
291 B
Go
17 lines
291 B
Go
package client
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/rpc/client"
|
|
)
|
|
|
|
// Raw returns underlying raw protobuf client.
|
|
func (c *clientImpl) Raw() *client.Client {
|
|
return c.raw
|
|
}
|
|
|
|
// implements Client.Conn method.
|
|
func (c *clientImpl) Conn() io.Closer {
|
|
return c.raw.Conn()
|
|
}
|