feat(events): add idempotent Kafka event consumer runtime
This commit is contained in:
1 parent
565ef8d4f5
commit
3adb0ef9e4
47 files changed
+5018
-105
No files matched your search
@@ -8,6 +8,28 @@ import (
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
)
|
||||
|
||||
type ConsumerDeadLetter struct {
|
||||
ID int64
|
||||
ConsumerName string
|
||||
Topic string
|
||||
KafkaPartition int32
|
||||
KafkaOffset int64
|
||||
EventID pgtype.UUID
|
||||
EventType pgtype.Text
|
||||
ErrorClass string
|
||||
Reason string
|
||||
Attempts int32
|
||||
ValueSize int32
|
||||
ValueSha256 []byte
|
||||
DeadLetteredAt pgtype.Timestamptz
|
||||
}
|
||||
|
||||
type ConsumerProcessedEvent struct {
|
||||
ConsumerName string
|
||||
EventID pgtype.UUID
|
||||
ProcessedAt pgtype.Timestamptz
|
||||
}
|
||||
|
||||
type EmailToken struct {
|
||||
ID pgtype.UUID
|
||||
UserID pgtype.UUID
|
||||
|
||||
Reference in new issue
Block a user