frostfs-sdk-go/client/client.go

25 lines
379 B
Go
Raw Normal View History

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
}