frostfs-api-go/v2/reputation/grpc/types.go
Leonard Lyubich 5b33eaec36 [#265] reputation/grpc: Implement setters on generated messages
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-03-25 11:20:34 +03:00

15 lines
227 B
Go

package reputation
// SetPeer sets trusted peer's ID.
func (x *Trust) SetPeer(v []byte) {
if x != nil {
x.Peer = v
}
}
// SetValue sets trust value.
func (x *Trust) SetValue(v float64) {
if x != nil {
x.Value = v
}
}