parser

package
v0.0.0-...-fefb669 Latest Latest
Warning

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

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

Documentation

Overview

Description: This package contains the parser service and configuration for the workflow parser.

Index

Constants

This section is empty.

Variables

View Source
var ExpressParserConfig = decoder.ParserConfig{
	AllowActivity: false,
	AllowWait:     false,
	AllowSuspend:  false,
	AllowParallel: true,
	AllowMap:      true,
	AllowChoice:   true,
	AllowFail:     true,
	AllowSucceed:  true,
	AllowPass:     true,
}

ExpressParserConfig express model workflow

View Source
var StandardParserConfig = decoder.ParserConfig{
	AllowActivity: true,
	AllowWait:     true,
	AllowSuspend:  true,
	AllowParallel: true,
	AllowMap:      true,
	AllowChoice:   true,
	AllowFail:     true,
	AllowSucceed:  true,
	AllowPass:     true,
}

StandardParserConfig standard model workflow

Functions

func GenerateActivityURI

func GenerateActivityURI(namespace string, activityName string) string

func GenerateStateMachineURI

func GenerateStateMachineURI(namespace string, stateMachineName string) string

func ParseStateMachine

func ParseStateMachine(definition string) (*states.StateMachine, error)

func ValdateStateMachine

func ValdateStateMachine(definition string) error

ValdateStateMachine ...

Types

type Parser

type Parser struct {
	Config decoder.ParserConfig
	Quota  decoder.Quota
}

ParserConfig parser configuration

var ExpressParser *Parser

ExpressParser ...

var StandardParser *Parser

StandardParser

func NewParser

func NewParser(config decoder.ParserConfig, quotaconfig decoder.Quota) *Parser

NewParser ParserConfig parser configuration

func (*Parser) GenerateActivityURI

func (parser *Parser) GenerateActivityURI(namespace string, activityName string) string

func (*Parser) GenerateStateMachineURI

func (parser *Parser) GenerateStateMachineURI(namespace string, stateMachineName string) string

func (*Parser) ParseStateMachine

func (parser *Parser) ParseStateMachine(definition string) (*states.StateMachine, error)

ParseStateMachine ...

Directories

Path Synopsis
package quota defined skyflow quota here
package quota defined skyflow quota here
Package states implements the State behavior for the workflow states are the basic step in the workflow, they can be combined to form a complex workflow
Package states implements the State behavior for the workflow states are the basic step in the workflow, they can be combined to form a complex workflow

Jump to

Keyboard shortcuts

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