Documentation ¶
Overview ¶
Package dynamo provides structs for working with AWS Dynamo records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFunc ¶
func HandleFunc(h HandlerFunc)
HandleFunc handles Dynamo events with callback function.
Types ¶
type Event ¶
type Event struct {
Records []*Record `json:"Records"`
}
Event represents a Dynamo event with one or more records.
type HandlerFunc ¶
HandlerFunc unmarshals Dynamo events before passing control.
func (HandlerFunc) Handle ¶
func (h HandlerFunc) Handle(data json.RawMessage, ctx *apex.Context) (interface{}, error)
Handle implements apex.Handler.
type Record ¶
type Record struct { EventID string `json:"eventID"` EventName string `json:"eventName"` EventSource string `json:"eventSource"` EventSourceARN string `json:"eventSourceARN"` EventVersion string `json:"eventVersion"` AWSRegion string `json:"awsRegion"` Dynamodb *StreamRecord `json:"dynamodb"` }
Record represents a single Dynamo record.
type StreamRecord ¶
type StreamRecord struct { ApproximateCreationDateTime int64 Keys map[string]*dynamodb.AttributeValue NewImage map[string]*dynamodb.AttributeValue OldImage map[string]*dynamodb.AttributeValue SequenceNumber string SizeBytes int64 StreamViewType string }
StreamRecord represents a Dynamo stream records
Click to show internal directories.
Click to hide internal directories.