dynamodb

package
v0.0.0-...-5eac7db Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(ctx context.Context, endpoint, region string) (*DB, error)

func (DB) GetItem

func (db DB) GetItem(ctx context.Context, table, partitionKey, sortKey string) (map[string]types.AttributeValue, error)

func (DB) GetItemsWithSortKeyRange

func (db DB) GetItemsWithSortKeyRange(ctx context.Context, table, partitionKey, since, until string) ([]map[string]types.AttributeValue, error)

func (DB) PutItem

func (db DB) PutItem(ctx context.Context, table string, item map[string]types.AttributeValue) error

Jump to

Keyboard shortcuts

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