Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(e events.DynamoDBEvent) error
Handler receives a DynamoDB stream and forwards the message on to SNOW
Types ¶
type DB ¶
type DB struct {
DynamoDB dynamodbiface.DynamoDBAPI
}
DB wraps DynamodDB with iface pkg for easier testing
type Message ¶
type Message struct { MessageID string `json:"messageid"` IntID string `json:"internal_identifier,omitempty"` Payload `json:"payload"` }
Message represents a change event
type Payload ¶
type Payload struct { SupplierRef string `json:"supplierRef"` Status string `json:"status"` Title string `json:"title"` Description string `json:"description"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` Success bool `json:"success,omitempty"` }
Payload is the message body
Click to show internal directories.
Click to hide internal directories.