dynamodb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dynamodb handles interactions with pkg/aws/dynamodb

Index

Constants

View Source
const (

	// ErrEmptyParameter is used when a generic parameter is empty
	ErrEmptyParameter = "EmptyInput"

	// ErrNoPointerParameter is used when a parameter is expected to be a pointer but it wasn't
	ErrNoPointerParameter = "NoPointerParameter"
)

Variables

This section is empty.

Functions

func UnmarshalStreamImage

func UnmarshalStreamImage(input events.DynamoDBEventRecord, output interface{}) error

UnmarshalStreamImage unmarshals a new Image Coming from the event into a passed interface. Pass a reference as output.

Types

type DynamoDB

type DynamoDB struct {
	*dynamodb.DynamoDB
}

DynamoDB embeds *dynamodb.DynamoDB and is used to call sns methods on high level

func New

func New(svc *aws.Session, endpoint string) (*DynamoDB, error)

New returns a *DynamoDB given a *aws.Session. Endpoint is optional.

func (*DynamoDB) GetItem

func (svc *DynamoDB) GetItem(tableName, keyName, keyValue string) (*GetItemOutPut, error)

GetItem gets an item from dynamodb

func (*DynamoDB) PutItem

func (svc *DynamoDB) PutItem(input interface{}, tableName string) error

PutItem puts a passed input into a passed table

type GetItemOutPut

type GetItemOutPut interface{}

GetItemOutPut contains information about an item retrieved from DynamoDB

Jump to

Keyboard shortcuts

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