Documentation ¶
Index ¶
- Constants
- func ReadBackup(r io.Reader, cb func(key datastore.Key, value []byte, log bool) error) (bool, error)
- func RestoreInto(r io.Reader, dest datastore.Batching) error
- type Datastore
- func (d *Datastore) Backup(ctx context.Context, out io.Writer) error
- func (d *Datastore) Batch(ctx context.Context) (datastore.Batch, error)
- func (d *Datastore) Close() error
- func (d *Datastore) CloseLog() error
- func (d *Datastore) Delete(ctx context.Context, key datastore.Key) error
- func (d *Datastore) Get(ctx context.Context, key datastore.Key) (value []byte, err error)
- func (d *Datastore) GetSize(ctx context.Context, key datastore.Key) (size int, err error)
- func (d *Datastore) Has(ctx context.Context, key datastore.Key) (exists bool, err error)
- func (d *Datastore) Put(ctx context.Context, key datastore.Key, value []byte) error
- func (d *Datastore) Query(ctx context.Context, q query.Query) (query.Results, error)
- func (d *Datastore) Sync(ctx context.Context, prefix datastore.Key) error
- type Entry
Constants ¶
View Source
const NoLogdir = ""
Variables ¶
This section is empty.
Functions ¶
func ReadBackup ¶
func RestoreInto ¶
Types ¶
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
func (*Datastore) Backup ¶
Writes a datastore dump into the provided writer as [array(*) of [key, value] tuples, checksum]
Click to show internal directories.
Click to hide internal directories.