2021-03-12 13:07:52 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
2021-05-31 06:22:10 +00:00
|
|
|
"io"
|
|
|
|
|
2021-03-12 13:07:52 +00:00
|
|
|
"github.com/nspcc-dev/neofs-api-go/rpc/client"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Raw returns underlying raw protobuf client.
|
|
|
|
func (c *clientImpl) Raw() *client.Client {
|
|
|
|
c.onceInit.Do(func() {
|
|
|
|
c.raw = client.New(c.opts.rawOpts...)
|
|
|
|
})
|
|
|
|
|
|
|
|
return c.raw
|
|
|
|
}
|
2021-05-31 06:22:10 +00:00
|
|
|
|
|
|
|
// implements Client.Conn method.
|
|
|
|
func (c *clientImpl) Conn() io.Closer {
|
|
|
|
return c.raw.Conn()
|
|
|
|
}
|