workflow

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Step

type Step struct {
	Namespace string                 `json:"namespace"`
	Type      string                 `json:"type"`
	Config    map[string]interface{} `json:"config"`
	Retries   int                    `json:"retries"`
	Next      map[string]interface{} `json:"next"`
}

Staep AFAIRE.

type Workflow

type Workflow struct {
	ID          string                 `json:"id"`
	Type        string                 `json:"type"`
	Description string                 `json:"description"`
	Origin      string                 `json:"origin"`
	Priority    int                    `json:"priority"`
	FirstStep   string                 `json:"first_step"`
	AllSteps    map[string]*Step       `json:"all_steps"`
	Data        map[string]interface{} `json:"data"`
	ExternalID  *string                `json:"external_id"`
}

Workflow AFAIRE.

func NewWorkflow

func NewWorkflow(firstStep string, allSteps map[string]*Step) *Workflow

NewWorkflow AFAIRE.

func (*Workflow) SetData

func (wf *Workflow) SetData(key string, value interface{}) *Workflow

SetData AFAIRE.

func (*Workflow) SetDescription

func (wf *Workflow) SetDescription(value string) *Workflow

SetDescription AFAIRE.

func (*Workflow) SetExternalID

func (wf *Workflow) SetExternalID(value string) *Workflow

SetExternalID AFAIRE.

func (*Workflow) SetID

func (wf *Workflow) SetID(value string) *Workflow

SetID AFAIRE.

func (*Workflow) SetOrigin

func (wf *Workflow) SetOrigin(value string) *Workflow

SetOrigin AFAIRE.

func (*Workflow) SetPriority

func (wf *Workflow) SetPriority(value int) *Workflow

SetPriority AFAIRE.

func (*Workflow) SetPriorityCritical

func (wf *Workflow) SetPriorityCritical() *Workflow

SetPriorityCritical AFAIRE.

func (*Workflow) SetPriorityHigh

func (wf *Workflow) SetPriorityHigh() *Workflow

SetPriorityHigh AFAIRE.

func (*Workflow) SetPriorityLow

func (wf *Workflow) SetPriorityLow() *Workflow

SetPriorityLow AFAIRE.

func (*Workflow) SetPriorityMedium

func (wf *Workflow) SetPriorityMedium() *Workflow

SetPriorityMedium AFAIRE.

func (*Workflow) SetPriorityNone

func (wf *Workflow) SetPriorityNone() *Workflow

SetPriorityNone AFAIRE.

func (*Workflow) SetType

func (wf *Workflow) SetType(value string) *Workflow

SetType AFAIRE.

func (*Workflow) SetUUID

func (wf *Workflow) SetUUID() *Workflow

SetUUID AFAIRE.

Jump to

Keyboard shortcuts

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