Lambda event source implementations
The github.com/go-nacelle/lambdabase
package provides first-class support for the following event sources.
These servers require a more specific handler interface invoked with unmarshalled request data and additional log context.
DynamoDB event server
NewDynamoDBEventServer invokes the backing handler with a list of DynamoDBEventRecords.
DynamoDB record server
NewDynamoDBRecordServer invokes the backing handler once for each DynamoDBEventRecord in the batch.
Kinesis event server
NewKinesisEventServer invokes the backing handler with a list of KinesisEventRecords.
Kinesis record server
NewKinesisRecordServer invokes the backing handler once for each KinesisEventRecord in the batch.
SQS event server
NewSQSEventServer invokes the backing handler with a list of SQSMessages.
SQS record server
NewSQSRecordServer invokes the backing handler once for each SQSMessage in the batch.