backend

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Create(item any) error
	Read(id string) (any, error)
	Update(item any) error
	Delete(id string) error
	Scan(prefix string) ([]any, error)
}

func NewDynamoDBBackend

func NewDynamoDBBackend(tableName string, svc *dynamodb.DynamoDB) (Backend, error)

type DynamoDBBackend

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

func (*DynamoDBBackend) Create

func (b *DynamoDBBackend) Create(metadata any) error

func (*DynamoDBBackend) Delete

func (b *DynamoDBBackend) Delete(id string) error

func (*DynamoDBBackend) Read

func (b *DynamoDBBackend) Read(id string) (any, error)

func (*DynamoDBBackend) Scan

func (b *DynamoDBBackend) Scan(prefix string) ([]any, error)

func (*DynamoDBBackend) Update

func (b *DynamoDBBackend) Update(metadata any) error

Jump to

Keyboard shortcuts

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