mem

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DriverName = "mem"

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

func (*Driver) Open

func (d *Driver) Open(_ context.Context, _ kvparams.Config) (kv.Store, error)

type EntriesIterator

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

func (*EntriesIterator) Close

func (e *EntriesIterator) Close()

func (*EntriesIterator) Entry

func (e *EntriesIterator) Entry() *kv.Entry

func (*EntriesIterator) Err

func (e *EntriesIterator) Err() error

func (*EntriesIterator) Next

func (e *EntriesIterator) Next() bool

func (*EntriesIterator) SeekGE added in v0.106.0

func (e *EntriesIterator) SeekGE(key []byte)

type PartitionMap added in v0.69.1

type PartitionMap map[string]kv.Entry

PartitionMap holds key-value pairs of a given partition

type Store

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

func (*Store) Close

func (s *Store) Close()

func (*Store) Delete

func (s *Store) Delete(_ context.Context, partitionKey, key []byte) error

func (*Store) Get

func (s *Store) Get(_ context.Context, partitionKey, key []byte) (*kv.ValueWithPredicate, error)

func (*Store) Scan

func (s *Store) Scan(_ context.Context, partitionKey []byte, options kv.ScanOptions) (kv.EntriesIterator, error)

func (*Store) Set

func (s *Store) Set(_ context.Context, partitionKey, key, value []byte) error

func (*Store) SetIf

func (s *Store) SetIf(_ context.Context, partitionKey, key, value []byte, valuePredicate kv.Predicate) error

Jump to

Keyboard shortcuts

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