forked from TrueCloudLab/frostfs-api-go
[#274] reputation: Adapt converters and encoding methods on messages
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
1076478b29
commit
541a56aae1
4 changed files with 38 additions and 1 deletions
|
@ -297,11 +297,29 @@ func (x *SendLocalTrustResponse) SetBody(v *SendLocalTrustResponseBody) {
|
|||
|
||||
// SendIntermediateResultRequestBody is a structure of SendIntermediateResult request body.
|
||||
type SendIntermediateResultRequestBody struct {
|
||||
epoch uint64
|
||||
|
||||
iter uint32
|
||||
|
||||
trust *PeerToPeerTrust
|
||||
}
|
||||
|
||||
// GetEpoch returns epoch number in which the intermediate trust was assessed.
|
||||
func (x *SendIntermediateResultRequestBody) GetEpoch() uint64 {
|
||||
if x != nil {
|
||||
return x.epoch
|
||||
}
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
// SetEpoch sets epoch number in which the intermediate trust was assessed.
|
||||
func (x *SendIntermediateResultRequestBody) SetEpoch(v uint64) {
|
||||
if x != nil {
|
||||
x.epoch = v
|
||||
}
|
||||
}
|
||||
|
||||
// GetIteration returns sequence number of the iteration.
|
||||
func (x *SendIntermediateResultRequestBody) GetIteration() uint32 {
|
||||
if x != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue