dynamodb

package
v0.0.0-...-4a03591 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *dyn.DynamoDB

Types

type Creator

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

Creator provides the means to create a document in DynamoDB without needing to worry about marshalling or building the input

func NewCreator

func NewCreator(client DynamoDB, table string) *Creator

NewCreator returns a new Creator that can create documents in table

func (*Creator) Create

func (c *Creator) Create(ctx context.Context, item interface{}) error

Create will create item in the DynamoDB table

type DynamoDB

type DynamoDB dynamodbiface.DynamoDBAPI

type Iterator

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

func NewIter

func NewIter(client DynamoDB, statement string) *Iterator

func Scan

func Scan(client DynamoDB, table string) *Iterator

func (*Iterator) Document

func (i *Iterator) Document(v interface{}) error

func (*Iterator) Err

func (i *Iterator) Err() error

func (*Iterator) Next

func (i *Iterator) Next(ctx context.Context) bool

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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