Documentation
¶
Index ¶
- func NewNutsDB(path string, option storage.Option) (storage.IndexDB, error)
- type NutsDB
- func (n *NutsDB) Close() error
- func (n *NutsDB) Delete(ctx context.Context, key []byte) error
- func (n *NutsDB) Exist(ctx context.Context, key []byte) bool
- func (n *NutsDB) Expired(ctx context.Context, f storage.IterateFunc) error
- func (n *NutsDB) GC(ctx context.Context) error
- func (n *NutsDB) Get(ctx context.Context, key []byte) (*object.Metadata, error)
- func (n *NutsDB) Iterate(ctx context.Context, prefix []byte, f storage.IterateFunc) error
- func (n *NutsDB) Set(ctx context.Context, key []byte, val *object.Metadata) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NutsDB ¶
type NutsDB struct {
// contains filtered or unexported fields
}
func (*NutsDB) Delete ¶
Delete implements storage.IndexDB.
func (*NutsDB) Exist ¶
Exist implements storage.IndexDB.
func (*NutsDB) Expired ¶
Expired implements storage.IndexDB.
func (*NutsDB) Get ¶
Get implements storage.IndexDB.
func (*NutsDB) Iterate ¶
Iterate implements storage.IndexDB.
Click to show internal directories.
Click to hide internal directories.