forked from TrueCloudLab/frostfs-api-go
[#265] reputation: Implement converters and encoding methods on messages
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
8ce1c5efcc
commit
ccae5a40ba
4 changed files with 517 additions and 4 deletions
|
@ -15,5 +15,15 @@ func TestMessageConvert(t *testing.T) {
|
|||
func(empty bool) message.Message { return reputationtest.GenerateSendLocalTrustRequest(empty) },
|
||||
func(empty bool) message.Message { return reputationtest.GenerateSendLocalTrustResponseBody(empty) },
|
||||
func(empty bool) message.Message { return reputationtest.GenerateSendLocalTrustResponse(empty) },
|
||||
func(empty bool) message.Message {
|
||||
return reputationtest.GenerateSendIntermediateResultRequestBody(empty)
|
||||
},
|
||||
func(empty bool) message.Message { return reputationtest.GenerateSendIntermediateResultRequest(empty) },
|
||||
func(empty bool) message.Message {
|
||||
return reputationtest.GenerateSendIntermediateResultResponseBody(empty)
|
||||
},
|
||||
func(empty bool) message.Message { return reputationtest.GenerateSendIntermediateResultResponse(empty) },
|
||||
func(empty bool) message.Message { return reputationtest.GenerateGlobalTrustBody(empty) },
|
||||
func(empty bool) message.Message { return reputationtest.GenerateGlobalTrust(empty) },
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue