-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: Provide method for binary object replication
NeoFS storage nodes replicate objects between each other to follow the objects' storage policies. The nodes store objects in Protocol Buffers V3 binary format. Previously, to transmit them, there was a need to almost completely decode the object. NeoFS API V2 protocol was recently extended with `neo.fs.v2.object.ObjectService.Replicate` RPC that allows to transmit binary object in one message (unlike complex `Put` streaming RPC). SDK should provide API for new service RPC clients. Add `ReplicateObject` method that works with binary objects accessed through `io.ReadSeeker` stream. The method is optimized to allocate buffer for the whole object once. Signed-off-by: Leonard Lyubich <[email protected]>
- Loading branch information
1 parent
d72d76c
commit f984d48
Showing
4 changed files
with
198 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters