forked from TrueCloudLab/frostfs-sdk-go
[#227] netmap: Fix minor blots in documentation/code
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
ca523f1ff1
commit
d648b86776
10 changed files with 46 additions and 45 deletions
|
@ -21,19 +21,19 @@ On client side:
|
|||
import "github.com/nspcc-dev/neofs-api-go/v2/netmap"
|
||||
|
||||
var msg netmap.NodeInfo
|
||||
msg.WriteToV2(&msg)
|
||||
info.WriteToV2(&msg)
|
||||
|
||||
// send msg
|
||||
|
||||
On server side:
|
||||
// recv msg
|
||||
|
||||
var info netmap.NodeInfo
|
||||
var info NodeInfo
|
||||
|
||||
err := info.ReadFromV2(msg)
|
||||
// ...
|
||||
|
||||
// process dec
|
||||
// process info
|
||||
|
||||
Using package types in an application is recommended to potentially work with
|
||||
different protocol versions with which these types are compatible.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue