Documentation ¶
Index ¶
- type ElasticDatastore
- func (d *ElasticDatastore) Batch() (datastore.Batch, error)
- func (d *ElasticDatastore) Close() error
- func (d *ElasticDatastore) Delete(key datastore.Key) (err error)
- func (d *ElasticDatastore) Get(key datastore.Key) (value []byte, err error)
- func (d *ElasticDatastore) GetSize(key datastore.Key) (size int, err error)
- func (d *ElasticDatastore) Has(key datastore.Key) (exists bool, err error)
- func (d *ElasticDatastore) Put(key datastore.Key, value []byte) (err error)
- func (d *ElasticDatastore) Query(q dsq.Query) (dsq.Results, error)
- func (d *ElasticDatastore) Sync(prefix datastore.Key) error
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) Sync ¶
func (d *ElasticDatastore) Sync(prefix datastore.Key) error
Sync implements Datastore.Sync
Click to show internal directories.
Click to hide internal directories.