Merge pull request #34 from wwwjfy/kcl-v2-format

fix incompatible Record struct in KCL v2
This commit is contained in:
Xavi 2018-12-11 16:22:57 -08:00 committed by GitHub
commit 6bb489ab5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,9 +61,11 @@ type ActionInitialize struct {
type Record struct {
SequenceNumber string `json:"sequenceNumber"`
SubSequenceNumber int `json:"subSequenceNumber"`
ApproximateArrivalTimestamp int `json:"approximateArrivalTimestamp"`
PartitionKey string `json:"partitionKey"`
Data string `json:"data"`
// KCL v2 has a different format, causing failure when json.Unmarshal.
// This is not used anywhere currently, so commenting it out.
//ApproximateArrivalTimestamp int `json:"approximateArrivalTimestamp"`
}
type ActionProcessRecords struct {