storage

package
v0.0.0-...-f163260 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStoragePlugin

func NewStoragePlugin() ds.Datastore

Types

type StoragePlugin

type StoragePlugin interface {
	store.Storage
	store.StorageOptions
	store.Query
	store.Iterator
}

type StorePlugin

type StorePlugin struct {
	// contains filtered or unexported fields
}

func (*StorePlugin) Close

func (s *StorePlugin) Close() error

func (*StorePlugin) Delete

func (s *StorePlugin) Delete(ctx context.Context, key ds.Key) error

func (*StorePlugin) Get

func (s *StorePlugin) Get(ctx context.Context, key ds.Key) (value []byte, err error)

func (*StorePlugin) GetSize

func (s *StorePlugin) GetSize(ctx context.Context, key ds.Key) (size int, err error)

func (*StorePlugin) Has

func (s *StorePlugin) Has(ctx context.Context, key ds.Key) (exists bool, err error)

func (*StorePlugin) Put

func (s *StorePlugin) Put(ctx context.Context, key ds.Key, value []byte) error

func (*StorePlugin) Query

func (s *StorePlugin) Query(ctx context.Context, q query.Query) (query.Results, error)

func (*StorePlugin) Sync

func (s *StorePlugin) Sync(ctx context.Context, prefix ds.Key) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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