models

package
v1.3.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2023 License: ISC Imports: 0 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL