forked from TrueCloudLab/frostfs-sdk-go
[#111] client: Add comments to client's public methods
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
09f7df10ed
commit
543291f8c5
6 changed files with 75 additions and 1 deletions
|
@ -38,6 +38,10 @@ func (x CreateSessionRes) SessionKey() []byte {
|
|||
return x.sessionKey
|
||||
}
|
||||
|
||||
// CreateSession creates session through NeoFS API call.
|
||||
//
|
||||
// Any client's internal or transport errors are returned as error,
|
||||
// NeoFS status codes are included in the returned results.
|
||||
func (c *Client) CreateSession(ctx context.Context, expiration uint64, opts ...CallOption) (*CreateSessionRes, error) {
|
||||
// apply all available options
|
||||
callOptions := c.defaultCallOptions()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue