dynamodbevent

package
v0.0.0-...-3a9ac50 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(handler Handler, options ...start.Option)

Start starts the Lambda runtime loop with the specified Handler.

func StartHandlerWithResponse

func StartHandlerWithResponse(handler HandlerWithResponse, options ...start.Option)

StartHandlerWithResponse starts the Lambda runtime loop with the specified HandlerWithResponse.

func StreamToDynamoDBAttributeValue

func StreamToDynamoDBAttributeValue(av events.DynamoDBAttributeValue) dynamodbtypes.AttributeValue

StreamToDynamoDBAttributeValue converts a DynamoDB Stream event attribute to an equivalent DynamoDB attribute. TODO replace recursive implementation.

func StreamToDynamoDBItem

func StreamToDynamoDBItem(item map[string]events.DynamoDBAttributeValue) map[string]dynamodbtypes.AttributeValue

StreamToDynamoDBItem uses StreamToDynamoDBAttributeValue to convert an item from a DynamoDB Stream event to an item in DynamoDB.

Types

type Handler

type Handler func(ctx context.Context, request events.DynamoDBEvent) error

Handler for DynamoDB events that doesn't return a response, and as a result cannot report batch item failure.

type HandlerWithResponse

type HandlerWithResponse func(ctx context.Context, request events.DynamoDBEvent) (events.DynamoDBEventResponse, error)

HandlerWithResponse for DynamoDB events and returns a response to report batch item failure.

type UnsupportedDynamoDBTypeError

type UnsupportedDynamoDBTypeError struct {
	DataType events.DynamoDBDataType
}

func (UnsupportedDynamoDBTypeError) Error

Jump to

Keyboard shortcuts

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