[#111] client: Fix doc comments

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-12-29 16:21:22 +03:00 committed by Alex Vanin
parent cb42437e5c
commit 09f7df10ed
3 changed files with 5 additions and 4 deletions

View file

@ -12,7 +12,8 @@ import (
"github.com/nspcc-dev/neofs-sdk-go/version"
)
// EACLWithSignature represents eACL table/signature pair.
// EndpointInfo represents versioned information about the node
// specified in the client.
type EndpointInfo struct {
version *version.Version
@ -24,7 +25,7 @@ func (e *EndpointInfo) LatestVersion() *version.Version {
return e.version
}
// NodeInfo returns returns information about the NeoFS node.
// NodeInfo returns information about the NeoFS node.
func (e *EndpointInfo) NodeInfo() *netmap.NodeInfo {
return e.ni
}

View file

@ -11,7 +11,7 @@ func (c *Client) Raw() *client.Client {
return c.raw
}
// implements Client.Conn method.
// Conn implements Client.Conn method.
func (c *Client) Conn() io.Closer {
return c.raw.Conn()
}

View file

@ -19,7 +19,7 @@ func (x ResponseMetaInfo) ResponderKey() []byte {
return x.key
}
// WithResponseInfoHandler allows to specify handler of response meta information for the all Client operations.
// WithResponseInfoHandler allows specifying handler of response meta information for the all Client operations.
// The handler is called right after the response is received. Client returns handler's error immediately.
func WithResponseInfoHandler(f func(ResponseMetaInfo) error) Option {
return func(opts *clientOptions) {