Documentation ¶
Index ¶
- type Config
- type MotrDatastore
- func (d *MotrDatastore) Batch(ctx context.Context) (ds.Batch, error)
- func (d *MotrDatastore) Close() error
- func (d *MotrDatastore) Delete(ctx context.Context, key ds.Key) (err error)
- func (d *MotrDatastore) DiskUsage(ctx context.Context) (uint64, error)
- func (d *MotrDatastore) Get(ctx context.Context, key ds.Key) ([]byte, error)
- func (d *MotrDatastore) GetSize(ctx context.Context, key ds.Key) (size int, err error)
- func (d *MotrDatastore) Has(ctx context.Context, key ds.Key) (bool, error)
- func (d *MotrDatastore) Put(ctx context.Context, key ds.Key, value []byte) (err error)
- func (d *MotrDatastore) Query(ctx context.Context, q query.Query) (query.Results, error)
- func (d *MotrDatastore) Sync(ctx context.Context, prefix ds.Key) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MotrDatastore ¶
func NewMotrDatastore ¶
func NewMotrDatastore(conf Config) (*MotrDatastore, error)
func (*MotrDatastore) Close ¶
func (d *MotrDatastore) Close() error
func (*MotrDatastore) DiskUsage ¶
func (d *MotrDatastore) DiskUsage(ctx context.Context) (uint64, error)
DiskUsage returns the current disk size used by this levelDB. For in-mem datastores, it will return 0.
Click to show internal directories.
Click to hide internal directories.