Documentation
¶
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) Delete(addr *object.Address) error
- func (db *DB) DeleteObjects(list ...*object.Address)
- func (db *DB) Get(addr *objectSDK.Address) (*object.Object, error)
- func (db *DB) Path() string
- func (db *DB) Put(obj *object.Object) error
- func (db *DB) Select(fs object.SearchFilters) (res []*object.Address, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB represents local metabase of storage node.
func (*DB) DeleteObjects ¶
DeleteObjects marks list of objects as deleted.
type Option ¶
type Option func(*cfg)
Option is an option of DB constructor.
func FromBoltDB ¶
FromBoltDB returns option to construct DB from BoltDB instance.
func WithLogger ¶
WithLogger returns option to set logger of DB.
Click to show internal directories.
Click to hide internal directories.