types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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