Documentation ¶
Index ¶
- func Start(handler Handler, options ...start.Option)
- func StartHandlerWithResponse(handler HandlerWithResponse, options ...start.Option)
- func StreamToDynamoDBAttributeValue(av events.DynamoDBAttributeValue) dynamodbtypes.AttributeValue
- func StreamToDynamoDBItem(item map[string]events.DynamoDBAttributeValue) map[string]dynamodbtypes.AttributeValue
- type Handler
- type HandlerWithResponse
- type UnsupportedDynamoDBTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (e UnsupportedDynamoDBTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.