Pavel Karpy
176be8ead1
[ #307 ] v2/reputation/test: Do not allocate memory if !empty
...
Move all memory allocation and field settings
in `Generate...(empty bool)` functions behind
`if !empty` check.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-16 10:12:50 +03:00
Alex Vanin
099347d3bc
Synchronize namings with NeoFS API v2.6.0
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-05-07 15:11:18 +03:00
Pavel Karpy
bb217067f4
[ #275 ] reputation/convert: Add nil check
...
In `SendIntermediateResultRequestBody`
add nil check for `trust` field.
If true, allocate new `PeerToPeerTrust`.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-04-27 10:46:37 +03:00
Pavel Karpy
541a56aae1
[ #274 ] reputation: Adapt converters and encoding methods on messages
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-04-22 13:37:07 +03:00
Pavel Karpy
1076478b29
[ #274 ] reputation: Recompile proto files
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-04-22 13:37:07 +03:00
Leonard Lyubich
269288119d
[ #265 ] v2/reputation: Support PeerToPeerTrust message
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-04-09 11:57:42 +03:00
Leonard Lyubich
ccae5a40ba
[ #265 ] reputation: Implement converters and encoding methods on messages
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-04-02 15:57:59 +03:00
Leonard Lyubich
8ce1c5efcc
[ #265 ] reputation: Implement generators of new RPC messages
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-04-02 15:57:59 +03:00
Leonard Lyubich
46b3feabe1
[ #265 ] reputation: Define structures of protobuf messages
...
Define Go structures of `SendIntermediateResult` RPC-related messages from
reputation package of NeoFS API. Implement getters and setters of message
fields.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-04-02 15:57:59 +03:00
Leonard Lyubich
ca2e272d42
[ #265 ] reputation/grpc: Implement setters on generated messages
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-04-02 15:57:59 +03:00
Leonard Lyubich
948cf3f174
[ #265 ] reputation: Compile protobuf files with new RPC
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-04-02 15:57:59 +03:00
Leonard Lyubich
3adfdc5005
[ #265 ] reputation: Implement converters and encoding methods on messages
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-03-25 11:20:34 +03:00
Leonard Lyubich
101d14d405
[ #265 ] reputation: Implement test package with message generators
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-03-25 11:20:34 +03:00
Leonard Lyubich
40505a523d
[ #265 ] reputation: Define structures of protobuf messages
...
Define Go structures of all messages from reputation package of NeoFs API.
Implement getters and setters of message fields.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-03-25 11:20:34 +03:00
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
Leonard Lyubich
1039cd6963
[ #265 ] reputation: Compile protobuf files
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-03-25 11:20:34 +03:00