v2/netmap: Define uni PlacementPolicy type

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-17 14:48:08 +03:00 committed by Stanislav Bogatyrev
parent 1ae7f9b491
commit ddd3ba1bf2
2 changed files with 28 additions and 0 deletions

23
v2/netmap/convert.go Normal file
View file

@ -0,0 +1,23 @@
package netmap
import (
netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap/grpc"
)
func PlacementPolicyToGRPCMessage(p *PlacementPolicy) *netmap.PlacementPolicy {
if p == nil {
return nil
}
// TODO: fill me
return nil
}
func PlacementPolicyFromGRPCMessage(m *netmap.PlacementPolicy) *PlacementPolicy {
if m == nil {
return nil
}
// TODO: fill me
return nil
}

5
v2/netmap/types.go Normal file
View file

@ -0,0 +1,5 @@
package netmap
type PlacementPolicy struct {
// TODO: fill me
}