[#26] refs: Use ObjectID message in Address
This commit makes ObjectID field of refs.Address message to use dedicated message for object identifier ObjectID. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
96924b04dc
commit
4bdd05ade8
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ Address of object (container id + object id)
|
|||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| ObjectID | [bytes](#bytes) | | ObjectID is an object identifier, valid UUIDv4 represented in bytes |
|
||||
| ObjectID | [ObjectID](#refs.ObjectID) | | ObjectID carries object identifier. |
|
||||
| CID | [bytes](#bytes) | | CID is container identifier |
|
||||
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ option (gogoproto.goproto_stringer_all) = false;
|
|||
|
||||
// Address of object (container id + object id)
|
||||
message Address {
|
||||
// ObjectID is an object identifier, valid UUIDv4 represented in bytes
|
||||
bytes ObjectID = 1[(gogoproto.customtype) = "ObjectID", (gogoproto.nullable) = false];
|
||||
// ObjectID carries object identifier.
|
||||
ObjectID ObjectID = 1;
|
||||
// CID is container identifier
|
||||
bytes CID = 2[(gogoproto.customtype) = "CID", (gogoproto.nullable) = false];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue