Documentation
¶
Overview ¶
Package delayed wraps a datastore allowing to artificially delay all operations.
Index ¶
- type Delayed
- func (dds *Delayed) Batch() (ds.Batch, error)
- func (dds *Delayed) Close() error
- func (dds *Delayed) Delete(key ds.Key) (err error)
- func (dds *Delayed) DiskUsage() (uint64, error)
- func (dds *Delayed) Get(key ds.Key) (value []byte, err error)
- func (dds *Delayed) GetSize(key ds.Key) (size int, err error)
- func (dds *Delayed) Has(key ds.Key) (exists bool, err error)
- func (dds *Delayed) Put(key ds.Key, value []byte) (err error)
- func (dds *Delayed) Query(q dsq.Query) (dsq.Results, error)
- func (dds *Delayed) Sync(prefix ds.Key) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Delayed ¶
type Delayed struct {
// contains filtered or unexported fields
}
Delayed is an adapter that delays operations on the inner datastore.
func (*Delayed) Close ¶
Close closes the inner datastore (if it implements the io.Closer interface).
Click to show internal directories.
Click to hide internal directories.