dbeventlambda

package
v0.0.0-...-5c68377 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(lambda Lambda) lambda.Service

NewService creates new lambda service instance to work with DynamoDB stream.

Types

type Lambda

type Lambda interface {
	Execute(Request) error
}

Lambda describes lambda to handle DynamoDB event.

type Request

type Request interface {
	Log() ss.LogStream
	PushLogSession(func() ss.LogPrefix)
	// PopLogSession pops log session. It has to be called in the stack end,
	// only if no error occurred. If it is called with "defer" - an unhandled
	// panic will not have all session data to store info about the error.
	PopLogSession(panicValue interface{})

	GetEvents() []events.DynamoDBEventRecord
}

Request describes request to lambda which handles DynamoDB event.

Jump to

Keyboard shortcuts

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