events3

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const Category = "S3EventRecord"

Variables

This section is empty.

Functions

func Dequeue

func Dequeue(q swarm.Broker) (<-chan swarm.Msg[*events.S3EventRecord], chan<- swarm.Msg[*events.S3EventRecord])

func New

func New(queue string, opts ...swarm.Option) (swarm.Broker, error)

New creates broker for AWS S3 (serverless events)

Types

type Broker added in v0.15.0

type Broker struct {
	constructs.Construct
	Bucket awss3.Bucket
	// contains filtered or unexported fields
}

func NewBroker added in v0.15.0

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

func (*Broker) NewBucket added in v0.15.0

func (broker *Broker) NewBucket(props *awss3.BucketProps) awss3.Bucket

func (*Broker) NewSink added in v0.15.0

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

type BrokerProps added in v0.15.0

type BrokerProps struct {
	System string
}

type S3Event added in v0.13.3

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

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 {
	Bucket      awss3.Bucket
	EventSource *awslambdaeventsources.S3EventSourceProps
	Lambda      *scud.FunctionGoProps
}

Jump to

Keyboard shortcuts

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