Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchivedTask ¶
type ArchivedTask struct { UUID string `json:"uuid" gorm:"primaryKey"` Queue string `json:"queue"` CurrentState string `json:"current_state"` AutoTargetState string `json:"auto_target_state"` SubmitTime int64 `json:"submit_time"` UpdateTime int64 `json:"update_time" gorm:"autoUpdateTime:nano"` }
func ConvertTaskForArchive ¶
func ConvertTaskForArchive(t Task) (a ArchivedTask)
type Task ¶
type Task struct { UUID string `json:"uuid" gorm:"primaryKey"` Queue string `json:"queue"` CurrentState string `json:"current_state"` AutoTargetState string `json:"auto_target_state"` SubmitTime int64 `json:"submit_time" gorm:"autoCreateTime:nano"` UpdateTime int64 `json:"update_time" gorm:"autoUpdateTime:nano"` Timeout int64 `json:"timeout"` Priority int64 `json:"priority"` Payload []byte `json:"payload" gorm:"type:bytea"` }
Click to show internal directories.
Click to hide internal directories.