types

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaseComponent

type CaseComponent struct {
	Children []Component
	Tag      ast.Expr
}

CaseComponent is a result of parsing an expression with type effe.Case

func (CaseComponent) Name

func (c CaseComponent) Name() *ast.Ident

type Component

type Component interface {
	Name() *ast.Ident
}

Every component is used by the business process must implement this interface.

type DecisionComponent

type DecisionComponent struct {
	Cases   []*CaseComponent
	Tag     ast.Expr
	TagName *ast.Ident
	TagType ast.Expr
	Failure *SimpleComponent
}

DecisionComponent is a result of parsing an expression with type effe.Wrap

func (DecisionComponent) Name

func (d DecisionComponent) Name() *ast.Ident

type GenerateResult

type GenerateResult struct {
	// PkgPath is the package's PkgPath.
	PkgPath string
	// OutputPath is the path where the generated output should be written.
	// May be empty if there were errors.
	OutputPath string
	// Errs is a slice of errors identified during generation.
	Errs []error
}

GenerateResult stores the result for a package from a call to Generate.

type LoadError

type LoadError struct {
	Err error
	Pos token.Pos
}

func (*LoadError) Error

func (l *LoadError) Error() string

type SimpleComponent

type SimpleComponent struct {
	Input            *ast.FieldList
	Output           *ast.FieldList
	FuncName         *ast.Ident
	OriginalFuncName *ast.Ident
	Deps             *ast.FieldList
}

Based component type declared with effe.Step. It must be a function with a specific format.

func (SimpleComponent) Name

func (s SimpleComponent) Name() *ast.Ident

type WrapComponent

type WrapComponent struct {
	Before   *SimpleComponent
	Success  *SimpleComponent
	Failure  *SimpleComponent
	Children []Component
}

WrapComponent is a result of parsing an expression with type effe.Wrap

func (WrapComponent) Name

func (w WrapComponent) Name() *ast.Ident

Jump to

Keyboard shortcuts

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