Merge pull request #34 from wwwjfy/kcl-v2-format
fix incompatible Record struct in KCL v2
This commit is contained in:
commit
6bb489ab5b
1 changed files with 7 additions and 5 deletions
12
kcl/kcl.go
12
kcl/kcl.go
|
|
@ -59,11 +59,13 @@ type ActionInitialize struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Record struct {
|
type Record struct {
|
||||||
SequenceNumber string `json:"sequenceNumber"`
|
SequenceNumber string `json:"sequenceNumber"`
|
||||||
SubSequenceNumber int `json:"subSequenceNumber"`
|
SubSequenceNumber int `json:"subSequenceNumber"`
|
||||||
ApproximateArrivalTimestamp int `json:"approximateArrivalTimestamp"`
|
PartitionKey string `json:"partitionKey"`
|
||||||
PartitionKey string `json:"partitionKey"`
|
Data string `json:"data"`
|
||||||
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 {
|
type ActionProcessRecords struct {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue