|
3 | 3 | package events |
4 | 4 |
|
5 | 5 | type KafkaEvent struct { |
6 | | - EventSource string `json:"eventSource"` |
7 | | - EventSourceARN string `json:"eventSourceArn"` |
8 | | - Records map[string][]KafkaRecord `json:"records"` |
9 | | - BootstrapServers string `json:"bootstrapServers"` |
| 6 | + EventSource string `json:"eventSource"` |
| 7 | + EventSourceARN string `json:"eventSourceArn"` |
| 8 | + Records map[string][]KafkaRecord `json:"records"` |
| 9 | + BootstrapServers string `json:"bootstrapServers"` |
10 | 10 | } |
11 | 11 |
|
12 | 12 | type KafkaRecord struct { |
13 | | - Topic string `json:"topic"` |
14 | | - Partition int64 `json:"partition"` |
15 | | - Offset int64 `json:"offset"` |
16 | | - Timestamp MilliSecondsEpochTime `json:"timestamp"` |
17 | | - TimestampType string `json:"timestampType"` |
18 | | - Key string `json:"key,omitempty"` |
19 | | - Value string `json:"value,omitempty"` |
20 | | - Headers []map[string][]byte `json:"headers"` |
| 13 | + Topic string `json:"topic"` |
| 14 | + Partition int64 `json:"partition"` |
| 15 | + Offset int64 `json:"offset"` |
| 16 | + Timestamp MilliSecondsEpochTime `json:"timestamp"` |
| 17 | + TimestampType string `json:"timestampType"` |
| 18 | + Key string `json:"key,omitempty"` |
| 19 | + Value string `json:"value,omitempty"` |
| 20 | + Headers []map[string][]byte `json:"headers"` |
21 | 21 | } |
0 commit comments