Documentation ¶
Overview ¶
Package autobatch provides a go-datastore implementation that automatically batches together writes by holding puts in memory until a certain threshold is met.
Index ¶
- type Datastore
- func (d *Datastore) Close() error
- func (d *Datastore) Delete(k ds.Key) error
- func (d *Datastore) DiskUsage() (uint64, error)
- func (d *Datastore) Flush() error
- func (d *Datastore) Get(k ds.Key) ([]byte, error)
- func (d *Datastore) GetSize(k ds.Key) (int, error)
- func (d *Datastore) Has(k ds.Key) (bool, error)
- func (d *Datastore) Put(k ds.Key, val []byte) error
- func (d *Datastore) Query(q dsq.Query) (dsq.Results, error)
- func (d *Datastore) Sync(prefix ds.Key) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
Datastore implements a go-datastore.
func NewAutoBatching ¶
NewAutoBatching returns a new datastore that automatically batches writes using the given Batching datastore. The size of the memory pool is given by size.
Click to show internal directories.
Click to hide internal directories.