From 09750484f9898a895fbf16bceb490e7a7b86b1c6 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 17 Nov 2020 15:26:03 +0300 Subject: [PATCH] [#176] localstore: Draft storage engine structure and ops Implement the primary structure and operation of the local object storage engine. Signed-off-by: Leonard Lyubich --- go.mod | 1 + go.sum | Bin 59749 -> 59822 bytes pkg/local_object_storage/engine/delete.go | 52 ++++++++++++ pkg/local_object_storage/engine/engine.go | 53 ++++++++++++ pkg/local_object_storage/engine/get.go | 97 ++++++++++++++++++++++ pkg/local_object_storage/engine/head.go | 78 +++++++++++++++++ pkg/local_object_storage/engine/put.go | 94 +++++++++++++++++++++ pkg/local_object_storage/engine/select.go | 64 ++++++++++++++ pkg/local_object_storage/engine/shards.go | 71 ++++++++++++++++ 9 files changed, 510 insertions(+) create mode 100644 pkg/local_object_storage/engine/delete.go create mode 100644 pkg/local_object_storage/engine/engine.go create mode 100644 pkg/local_object_storage/engine/get.go create mode 100644 pkg/local_object_storage/engine/head.go create mode 100644 pkg/local_object_storage/engine/put.go create mode 100644 pkg/local_object_storage/engine/select.go create mode 100644 pkg/local_object_storage/engine/shards.go diff --git a/go.mod b/go.mod index 1f4eaa2de..701c683bf 100644 --- a/go.mod +++ b/go.mod @@ -13,6 +13,7 @@ require ( github.com/multiformats/go-multiaddr v0.2.0 github.com/multiformats/go-multiaddr-net v0.1.2 // v0.1.1 => v0.1.2 github.com/multiformats/go-multihash v0.0.13 // indirect + github.com/nspcc-dev/hrw v1.0.9 github.com/nspcc-dev/neo-go v0.91.1-pre.0.20201030072836-71216865717b github.com/nspcc-dev/neofs-api-go v1.20.3-0.20201201103311-576841e0e091 github.com/nspcc-dev/neofs-crypto v0.3.0 diff --git a/go.sum b/go.sum index 65bb7337e9945bbf3f1794b8306b784fa4352c90..38bd80187c5dff57e2c62b9bd874d5b7183ed8c2 100644 GIT binary patch delta 62 zcmaEQiFw^+<_+Qx^%XJ