module

package
v0.0.0-...-b2c1117 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Uuid   string
	Status JobProgress
	Reason string

	CtxCancel context.CancelFunc

	MainStep *StepModule.Step

	CreateTime time.Time
	StartTime  time.Time
	EndTime    time.Time
}

func NewJob

func NewJob() *Job

func (*Job) Cancel

func (j *Job) Cancel()

func (*Job) GoJob

func (j *Job) GoJob(ctx context.Context, msService service.StepServiceApp)

type JobProgress

type JobProgress int
const (
	CREATED JobProgress = iota
	PROCESSING
	FINISHED
	FAILED

	CANCELING
	CANCELED
)

Jump to

Keyboard shortcuts

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