github.com/Foodji/aws-lambda-go@v1.20.2/events/kafka.go (about) 1 // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 3 package events 4 5 type KafkaEvent struct { 6 EventSource string `json:"eventSource"` 7 EventSourceARN string `json:"eventSourceArn"` 8 Records map[string][]KafkaRecord `json:"records"` 9 } 10 11 type KafkaRecord struct { 12 Topic string `json:"topic"` 13 Partition int64 `json:"partition"` 14 Offset int64 `json:"offset"` 15 Timestamp MilliSecondsEpochTime `json:"timestamp"` 16 TimestampType string `json:"timestampType"` 17 Key string `json:"key,omitempty"` 18 Value string `json:"value,omitempty"` 19 }