Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions object/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ service ObjectService {
// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
// the container to which the replicated object is associated was not found.
rpc Replicate(ReplicateRequest) returns (ReplicateResponse);

// TODO: docs.
rpc ReplicateV2(stream ReplicateV2Request) returns (ReplicateResponse);
}

// GET object request.
Expand Down Expand Up @@ -872,3 +875,21 @@ message ReplicateResponse {
// `sign_object` flag set.
bytes object_signature = 2;
}

// TODO: docs.
message ReplicateV2Request {
// TODO: or just ReplicateRequest?
message Init {
neo.fs.v2.refs.ObjectID object_id = 1;
neo.fs.v2.refs.Signature signature = 2;
Header header = 3;
bytes payload_chunk = 4; // TODO: needed?
neo.fs.v2.refs.Signature node_id_signature = 5;
bool sign_object = 6;
}

oneof stream_part {
Init init = 1;
bytes payload_chunk = 2;
}
}
Loading