Skip to content

Commit

Permalink
object: Separate API for node-to-node replication
Browse files Browse the repository at this point in the history
TBD

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Dec 11, 2023
1 parent 1424834 commit e7673f4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions object/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ option csharp_namespace = "Neo.FileStorage.API.Object";
import "object/types.proto";
import "refs/types.proto";
import "session/types.proto";
import "status/types.proto";

// `ObjectService` provides API for manipulating objects. Object operations do
// not affect the sidechain and are only served by nodes in p2p style.
Expand Down Expand Up @@ -218,6 +219,9 @@ service ObjectService {
// - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
// provided session token has expired.
rpc GetRangeHash(GetRangeHashRequest) returns (GetRangeHashResponse);

// TODO: docs
rpc Replicate(ReplicationRequest) returns (ReplicationResponse);
}

// GET object request
Expand Down Expand Up @@ -688,3 +692,15 @@ message GetRangeHashResponse {
// transmission.
neo.fs.v2.session.ResponseVerificationHeader verify_header = 3;
}

// TODO: docs
message ReplicationRequest {
// TODO: reserve 1st byte for forward compatibility
bytes object = 1;

neo.fs.v2.refs.Signature object_signature = 2;
}

message ReplicationResponse {
neo.fs.v2.status.Status status = 1;
}

0 comments on commit e7673f4

Please sign in to comment.