Skip to content

Commit ed9d6af

Browse files
committed
feat: update jobs structure to be compatible with kafka driver
Signed-off-by: Valery Piashchynski <[email protected]>
1 parent 6e84c88 commit ed9d6af

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plugins/jobs/job.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ type Options struct {
4747

4848
// AutoAck use to ack a job right after it arrived from the driver
4949
AutoAck bool `json:"auto_ack"`
50+
51+
// kafka specific fields
52+
// Topic is kafka topic
53+
Topic string `json:"topic"`
54+
// Optional metadata
55+
Metadata string `json:"metadata"`
56+
// Kafka partition
57+
Partition int32 `json:"partition"`
58+
// Kafka offset
59+
Offset int64 `json:"offset"`
5060
}
5161

5262
// DelayDuration returns delay duration in a form of time.Duration.

0 commit comments

Comments
 (0)