forked from TrueCloudLab/frostfs-api
[#28] storagegroup: Remove gogoproto from typedef
As mentioned in #32, there is a need to remove gogoproto usage from NeoFS API since this plugin is not cross-language. This commit removes usage from StorageGroup message and all related types Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
974a2288c4
commit
248a91b329
1 changed files with 3 additions and 8 deletions
|
@ -3,18 +3,13 @@ package storagegroup;
|
||||||
option go_package = "github.com/nspcc-dev/neofs-api-go/storagegroup";
|
option go_package = "github.com/nspcc-dev/neofs-api-go/storagegroup";
|
||||||
option csharp_namespace = "NeoFS.API.StorageGroup";
|
option csharp_namespace = "NeoFS.API.StorageGroup";
|
||||||
|
|
||||||
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
||||||
import "refs/types.proto";
|
import "refs/types.proto";
|
||||||
|
|
||||||
option (gogoproto.stable_marshaler_all) = true;
|
|
||||||
|
|
||||||
message StorageGroup {
|
message StorageGroup {
|
||||||
option (gogoproto.goproto_stringer) = false;
|
|
||||||
|
|
||||||
// ValidationDataSize is size of the all object's payloads included into storage group
|
// ValidationDataSize is size of the all object's payloads included into storage group
|
||||||
uint64 ValidationDataSize = 1;
|
uint64 ValidationDataSize = 1;
|
||||||
// ValidationHash is homomorphic hash of all object's payloads included into storage group
|
// ValidationHash is homomorphic hash of all object's payloads included into storage group
|
||||||
bytes ValidationHash = 2 [(gogoproto.customtype) = "Hash", (gogoproto.nullable) = false];
|
bytes ValidationHash = 2;
|
||||||
|
|
||||||
message Lifetime {
|
message Lifetime {
|
||||||
enum Unit {
|
enum Unit {
|
||||||
|
@ -27,13 +22,13 @@ message StorageGroup {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unit is lifetime type
|
// Unit is lifetime type
|
||||||
Unit unit = 1 [(gogoproto.customname) = "Unit"];
|
Unit unit = 1;
|
||||||
// Value for lifetime
|
// Value for lifetime
|
||||||
int64 Value = 2;
|
int64 Value = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lifetime is time until storage group is valid
|
// Lifetime is time until storage group is valid
|
||||||
Lifetime lifetime = 3 [(gogoproto.customname) = "Lifetime"];
|
Lifetime lifetime = 3;
|
||||||
|
|
||||||
// Members carries the list of identifiers of the object storage group members.
|
// Members carries the list of identifiers of the object storage group members.
|
||||||
// The list is strictly ordered.
|
// The list is strictly ordered.
|
||||||
|
|
Loading…
Reference in a new issue