entity

package
v0.0.0-...-b66bdfa Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

type History struct {
	HistoryID int `bun:",pk"`
	Timestamp time.Time
	Status    JobStatus
	IsrJobID  string
	IsrJob    IsrJob `bun:"rel:belongs-to"`
}

type IsrJob

type IsrJob struct {
	IsrJobID                string `bun:",pk"`
	UploadImageKey          string
	SuperResolutionImageKey string
}

type JobStatus

type JobStatus int
const (
	UNKNOWN JobStatus = iota
	PENDING
	RUNNING
	FAIL
	SUCCEED
)

func (JobStatus) String

func (s JobStatus) String() string

Jump to

Keyboard shortcuts

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