storage

package
v0.0.0-...-f1c7bc1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 3 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 {
	*job.Job
	Status        string                 `json:"status"`
	Workflow      *string                `json:"workflow"`
	CreatedAt     time.Time              `json:"created_at"`
	FinishedAt    *time.Time             `json:"finished_at"`
	Private       map[string]interface{} `json:"private"`
	Weight        int                    `json:"weight"`
	TimeReference time.Time              `json:"time_reference"`
}

Job AFAIRE.

type Storage

type Storage interface {
	ValidateJob(job *job.Job) error
	InsertJob(job *Job) (bool, error)
	NextJob() (*Job, error)
	UpdateJob(job *Job) error
	ValidateWorkflow(wf *workflow.Workflow) error
	InsertWorkflow(wf *Workflow, job *Job) error
	Workflow(id string, mustExist bool) (*Workflow, error)
	UpdateWorkflow(wf *Workflow) error
}

Storage AFAIRE.

type Workflow

type Workflow struct {
	*workflow.Workflow
	Status     string     `json:"status"`
	CreatedAt  time.Time  `json:"created_at"`
	FinishedAt *time.Time `json:"finished_at"`
}

Workflow AFAIRE.

Jump to

Keyboard shortcuts

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