frostfs-sdk-go/client/client.go
Pavel Karpy cb42437e5c [#111] client: Drop client.Client interface
Return structure instead.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-01-11 11:03:14 +03:00

24 lines
379 B
Go

package client
import (
"github.com/nspcc-dev/neofs-api-go/v2/rpc/client"
)
type Client struct {
raw *client.Client
opts *clientOptions
}
func New(opts ...Option) (*Client, error) {
clientOptions := defaultClientOptions()
for i := range opts {
opts[i](clientOptions)
}
return &Client{
opts: clientOptions,
raw: client.New(clientOptions.rawOpts...),
}, nil
}