forked from mtusi2026/mtusi2026lab6
Реализовать наблюдаемость мессенджера для ЛР 6 на четыре
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type AttachmentJob struct {
|
||||
ID string
|
||||
AttachmentID string
|
||||
PipelineVersion int32
|
||||
AttemptsStarted int32
|
||||
MaxAttempts int32
|
||||
LeaseGeneration int32
|
||||
LeaseUntil time.Time
|
||||
AcceptedAt time.Time
|
||||
}
|
||||
|
||||
type AttachmentJobState struct {
|
||||
AttachmentID string
|
||||
PipelineVersion int32
|
||||
ID string
|
||||
Status string
|
||||
LeaseGeneration int32
|
||||
AttemptsStarted int32
|
||||
MaxAttempts int32
|
||||
LeaseUntil *time.Time
|
||||
LeaseExpired bool
|
||||
NextAttemptAt *time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user