forked from TrueCloudLab/frostfs-node
[#216] blobovnicza: Define Blobovnicza type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a1164b2a5c
commit
40b09f9266
1 changed files with 29 additions and 0 deletions
29
pkg/local_object_storage/blobovnicza/blobovnicza.go
Normal file
29
pkg/local_object_storage/blobovnicza/blobovnicza.go
Normal file
|
@ -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,
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue