job

package
v0.0.0-...-3a513bd Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound   = errors.New("not found")
	ErrReschedule = errors.New("reschedule")
	ErrAbort      = errors.New("abort")
)

Functions

This section is empty.

Types

type Job

type Job struct {
	ID              uuid.UUID              `json:"job_id"`
	Name            string                 `json:"name"`
	Functions       []*function.Function   `json:"functions"`
	CurrentFunction int                    `json:"current_function"`
	Data            map[string]interface{} `json:"data"`
	CreatedAt       time.Time              `json:"created_at"`
	ScheduledAt     time.Time              `json:"scheduled_at"`
}

func (*Job) GetCurrentFunction

func (j *Job) GetCurrentFunction() *function.Function

func (*Job) IncrCurrentFunction

func (j *Job) IncrCurrentFunction() bool

Jump to

Keyboard shortcuts

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