elastic

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: AGPL-3.0 Imports: 4 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(ctx context.Context) (datastore.Batch, error)

func (*ElasticDatastore) Close

func (d *ElasticDatastore) Close() error

func (*ElasticDatastore) Delete

func (d *ElasticDatastore) Delete(ctx context.Context, key datastore.Key) (err error)

Delete implements Datastore.Delete

func (*ElasticDatastore) Get

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

Get implements Datastore.Get

func (*ElasticDatastore) GetSize

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

Has implements Datastore.GetSize

func (*ElasticDatastore) Has

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

Has implements Datastore.Has

func (*ElasticDatastore) Put

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

Put implements Datastore.Put

func (*ElasticDatastore) Query

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

Query implements Datastore.Query

func (*ElasticDatastore) Sync

func (d *ElasticDatastore) Sync(ctx context.Context, 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