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 ¶
DynamoDB embeds *dynamodb.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
Click to show internal directories.
Click to hide internal directories.