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: 8 Imported by: 0

Documentation

Overview

Package dynamodb contains third party interactions with aws-sdk-go/dynamodb

Index

Constants

View Source
const (

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

	// ErrEmptyParameter is used when a required parameter is empty
	ErrEmptyParameter = "EmptyParameter"

	// ErrEmptyMap is used when a required map parameter is empty
	ErrEmptyMap = "EmptyMap"
)

Variables

This section is empty.

Functions

func UnmarshalGetItemOutput

func UnmarshalGetItemOutput(in *GetItemOutput, out interface{}) error

UnmarshalGetItemOutput unmarshals a *GetItemOutput into a passed interface reference

func UnmarshalStreamImage

func UnmarshalStreamImage(in map[string]events.DynamoDBAttributeValue, out interface{}) error

UnmarshalStreamImage unmarshals a dynamo stream image in a pointer to an interface

Types

type DynamoDB

type DynamoDB struct {
	*dynamodb.DynamoDB
}

DynamoDB embeds *dynamodb.DynamoDB

func New

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

New returns a new *DynamoDB

func (*DynamoDB) DynamoGetItem

func (svc *DynamoDB) DynamoGetItem(input *GetItemInput) (*GetItemOutput, error)

DynamoGetItem gets an item from DynamoDB given a valid *GetItemInput

func (*DynamoDB) DynamoPutItem

func (svc *DynamoDB) DynamoPutItem(input *PutItemInput) error

DynamoPutItem puts a given input on dynamodb

type GetItemInput

type GetItemInput struct {
	*dynamodb.GetItemInput
}

GetItemInput embeds *dynamodb.GetItemInput

func NewGetItemInput

func NewGetItemInput(tableName, keyName, keyValue string) (*GetItemInput, error)

NewGetItemInput returns a new *GetItemInput

type GetItemOutput

type GetItemOutput struct {
	*dynamodb.GetItemOutput
}

GetItemOutput embeds *dynamodb.GetItemOutput

type PutItemInput

type PutItemInput struct {
	*dynamodb.PutItemInput
}

PutItemInput embeds *dynamodb.PutItemInput

func NewPutItemInput

func NewPutItemInput(in interface{}, tableName string) (*PutItemInput, error)

NewPutItemInput returns a new *PutItemInput

Jump to

Keyboard shortcuts

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