dynamodb

package
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverName = "dynamodb"

	PartitionKey = "PartitionKey"
	ItemKey      = "ItemKey"
	ItemValue    = "ItemValue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

func (*Driver) Open

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

Open - opens and returns a KV store over DynamoDB. This function creates the DB session and sets up the KV table.

type DynKVItem

type DynKVItem struct {
	PartitionKey []byte
	ItemKey      []byte
	ItemValue    []byte
}

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 NopRateLimiter added in v0.112.0

type NopRateLimiter struct{}

func (*NopRateLimiter) AddTokens added in v0.112.0

func (r *NopRateLimiter) AddTokens(uint) error

func (*NopRateLimiter) GetToken added in v0.112.0

func (r *NopRateLimiter) GetToken(_ context.Context, _ uint) (releaseToken func() error, err error)

type Store

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

func (*Store) Check added in v0.94.0

func (s *Store) Check()

func (*Store) Close

func (s *Store) Close()

func (*Store) Delete

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

func (*Store) DropTable added in v0.68.0

func (s *Store) DropTable() error

DropTable used internally for testing purposes

func (*Store) Get

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

func (*Store) Scan

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

func (*Store) Set

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

func (*Store) SetIf

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

func (*Store) StartPeriodicCheck added in v0.94.0

func (s *Store) StartPeriodicCheck()

StartPeriodicCheck performs one check and continues every 'interval' in the background

func (*Store) StopPeriodicCheck added in v0.94.0

func (s *Store) StopPeriodicCheck()

Jump to

Keyboard shortcuts

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