elastic

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticDatastore

type ElasticDatastore struct {
}

ElasticDatastore stores nothing, but conforms to the API. Useful to test with.

func NewElasticDatastore

func NewElasticDatastore() *ElasticDatastore

NewElasticDatastore constructs a null datastoe

func (*ElasticDatastore) Batch

func (d *ElasticDatastore) Batch() (datastore.Batch, error)

func (*ElasticDatastore) Close

func (d *ElasticDatastore) Close() error

func (*ElasticDatastore) Delete

func (d *ElasticDatastore) Delete(key datastore.Key) (err error)

Delete implements Datastore.Delete

func (*ElasticDatastore) Get

func (d *ElasticDatastore) Get(key datastore.Key) (value []byte, err error)

Get implements Datastore.Get

func (*ElasticDatastore) GetSize

func (d *ElasticDatastore) GetSize(key datastore.Key) (size int, err error)

Has implements Datastore.GetSize

func (*ElasticDatastore) Has

func (d *ElasticDatastore) Has(key datastore.Key) (exists bool, err error)

Has implements Datastore.Has

func (*ElasticDatastore) Put

func (d *ElasticDatastore) Put(key datastore.Key, value []byte) (err error)

Put implements Datastore.Put

func (*ElasticDatastore) Query

func (d *ElasticDatastore) Query(q dsq.Query) (dsq.Results, error)

Query implements Datastore.Query

func (*ElasticDatastore) Sync

func (d *ElasticDatastore) Sync(prefix datastore.Key) error

Sync implements Datastore.Sync

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL