eventddb

package module
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Category = "DynamoDBEventRecord"
View Source
const EnvConfigSourceDynamoDB = "CONFIG_SWARM_SOURCE_DYNAMODB"

Environment variable to config event source

View Source
const Version = "broker/eventddb/v0.20.2"

Variables

This section is empty.

Functions

func NewReader added in v0.20.0

func NewReader(opts ...Option) (*kernel.Dequeuer, error)

New creates broker for AWS EventBridge

func Source added in v0.20.0

The broker produces only events.DynamoDBEventRecord, the function is helper.

Types

type Broker

type Broker struct {
	constructs.Construct
	Table awsdynamodb.ITable
	// contains filtered or unexported fields
}

func NewBroker

func NewBroker(scope constructs.Construct, id *string, props *BrokerProps) *Broker

func (*Broker) AddTable

func (broker *Broker) AddTable(tableName string) awsdynamodb.ITable

func (*Broker) NewSink

func (broker *Broker) NewSink(props *SinkProps) *Sink

func (*Broker) NewTable

func (broker *Broker) NewTable(props *awsdynamodb.TablePropsV2) awsdynamodb.ITable

type BrokerProps

type BrokerProps struct {
	System string
}

type Client added in v0.20.0

type Client struct {
	// contains filtered or unexported fields
}

type DynamoDBEvent

type DynamoDBEvent struct {
	Records []json.RawMessage `json:"Records"`
}

Note: events.DynamoDBEvent decodes all records, the swarm kernel protocol requires bytes.

type Option added in v0.20.0

type Option func(*Client)

func WithConfig added in v0.20.0

func WithConfig(opts ...swarm.Option) Option

type Sink

type Sink struct {
	constructs.Construct
	Handler awslambda.IFunction
}

func NewSink

func NewSink(scope constructs.Construct, id *string, props *SinkProps) *Sink

type SinkProps

type SinkProps struct {
	Table       awsdynamodb.ITable
	Function    scud.FunctionProps
	EventSource *awslambdaeventsources.DynamoEventSourceProps
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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