From 40b09f9266994cc3a6257eb9dd6faf8c95c8d85c Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 26 Nov 2020 11:17:53 +0300 Subject: [PATCH] [#216] blobovnicza: Define Blobovnicza type Signed-off-by: Leonard Lyubich --- .../blobovnicza/blobovnicza.go | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkg/local_object_storage/blobovnicza/blobovnicza.go diff --git a/pkg/local_object_storage/blobovnicza/blobovnicza.go b/pkg/local_object_storage/blobovnicza/blobovnicza.go new file mode 100644 index 000000000..831fa9222 --- /dev/null +++ b/pkg/local_object_storage/blobovnicza/blobovnicza.go @@ -0,0 +1,29 @@ +package blobovnicza + +// Blobovnicza represents the implementation of NeoFS Blobovnicza. +type Blobovnicza struct { + *cfg +} + +// Option is an option of Blobovnicza's constructor. +type Option func(*cfg) + +type cfg struct { +} + +func defaultCfg() *cfg { + return &cfg{} +} + +// New creates and returns new Blobovnicza instance. +func New(opts ...Option) *Blobovnicza { + c := defaultCfg() + + for i := range opts { + opts[i](c) + } + + return &Blobovnicza{ + cfg: c, + } +}