v2/netmap: Define uni PlacementPolicy type

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/feature/refactor-sig-rpc
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

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
}

View File

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