handler

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

func BatchGetItem added in v0.0.3

func BatchGetItem(
	ctx context.Context,
	s *state,
	input *dynamodb.BatchGetItemInput,
) (*dynamodb.BatchGetItemOutput, error)

func BatchWriteItem added in v0.0.3

func BatchWriteItem(
	ctx context.Context,
	s *state,
	input *dynamodb.BatchWriteItemInput,
) (*dynamodb.BatchWriteItemOutput, error)

func CreateTable

func CreateTable(ctx context.Context, s *state, input *dynamodb.CreateTableInput) (*dynamodb.CreateTableOutput, error)

func DeleteItem added in v0.0.3

func DeleteItem(ctx context.Context, s *state, input *dynamodb.DeleteItemInput) (*dynamodb.DeleteItemOutput, error)

func DeleteTable added in v0.0.3

func DeleteTable(ctx context.Context, s *state, input *dynamodb.DeleteTableInput) (*dynamodb.DeleteTableOutput, error)

func DescribeTable added in v0.0.3

func DescribeTable(ctx context.Context, s *state, input *dynamodb.DescribeTableInput) (*dynamodb.DescribeTableOutput, error)

func GetItem added in v0.0.3

func GetItem(ctx context.Context, s *state, input *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)

func New

func New(kv KVStore) http.Handler

func PutItem added in v0.0.3

func PutItem(ctx context.Context, s *state, input *dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)

Types

type KVStore

type KVStore interface {
	Get(ctx context.Context, key []byte) ([]byte, error)

	Put(ctx context.Context, key []byte, value []byte) error

	Delete(ctx context.Context, key []byte) error
}

Jump to

Keyboard shortcuts

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