Documentation
¶
Index ¶
- type BuildOption
- type Builder
- func (wb *Builder) AddNode(node core.Node) *Builder
- func (wb *Builder) AddVariable(node core.Node, variable *core.Variable) *Builder
- func (wb *Builder) Build() *Workflow
- func (wb *Builder) BuildFromDsl(input io.Reader) (wf *Workflow, err error)
- func (wb *Builder) Connect(source, target core.Node) *Builder
- func (wb *Builder) ConnectByID(sourceID, targetID string) *Builder
- func (wb *Builder) GetGraph() *graph.DAG
- func (wb *Builder) Validate() error
- type Workflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOption ¶
type BuildOption func(wb *Builder)
func WithFunction ¶
func WithFunction(name string, fn func(node *nodes.FunctionNode, ctx core.Context) error) BuildOption
func WithServices ¶
func WithServices(services ...nodes.Service) BuildOption
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder 工作流构建器
func (*Builder) AddVariable ¶
AddVariable 为节点添加输入变量
func (*Builder) BuildFromDsl ¶
func (*Builder) ConnectByID ¶
ConnectByID 通过ID连接两个节点
type Workflow ¶
type Workflow struct {
// contains filtered or unexported fields
}
Workflow 工作流定义
func (*Workflow) GetExecutionStats ¶
func (w *Workflow) GetExecutionStats() *stats.ExecutionStats
GetExecutionStats 获取执行统计信息
Click to show internal directories.
Click to hide internal directories.