dynamo

package
v0.0.0-...-20a79f0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound error for missing dynamo item
	ErrNotFound = errors.New("Item Not Found")
)

Functions

This section is empty.

Types

type Table

type Table struct {
	Name string
}

Table dynamoDB service

func Client

func Client(name string) *Table

Client init dynamoDB service

func (*Table) Get

func (t *Table) Get(ctx context.Context, id string, data interface{}) (err error)

Get retrieves item from dynamoDB table

func (*Table) Put

func (t *Table) Put(ctx context.Context, item interface{}) (result *dynamodb.PutItemOutput, err error)

Put inserts item into dynamoDB table

Jump to

Keyboard shortcuts

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