From 7afcde659dd68c85e40e6d464bd27d4c74c77484 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 24 Nov 2020 17:19:44 +0300 Subject: [PATCH] [#211] blobstor: Define GetRangeSmall operation interface Signed-off-by: Leonard Lyubich --- .../blobstor/get_range_small.go | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkg/local_object_storage/blobstor/get_range_small.go diff --git a/pkg/local_object_storage/blobstor/get_range_small.go b/pkg/local_object_storage/blobstor/get_range_small.go new file mode 100644 index 000000000..7c955117c --- /dev/null +++ b/pkg/local_object_storage/blobstor/get_range_small.go @@ -0,0 +1,24 @@ +package blobstor + +// GetRangeSmallPrm groups the parameters of GetRangeSmall operation. +type GetRangeSmallPrm struct { + address + rwRange + rwBlobovniczaID +} + +// GetRangeSmallRes groups resulting values of GetRangeSmall operation. +type GetRangeSmallRes struct { + rangeData +} + +// GetRangeSmall reads data of object payload range from blobovnicza of BLOB storage. +// +// If blobovnicza ID is not set or set to nil, BlobStor tries to get payload range +// from any blobovnicza. +// +// Returns any error encountered that +// did not allow to completely read the object payload range. +func (b *BlobStor) GetRangeSmall(prm *GetRangeBigPrm) (*GetRangeBigRes, error) { + panic("implement me") +}