Documentation
¶
Overview ¶
Package core 提供 FlowLink 共享协议的稳定聚合入口。
具体实现按职责位于 workflow、flowctx 和 identity 子包;根包通过类型别名保留 简洁且兼容的公共入口。core 不依赖运行时、后台、前端或持久化实现。
Index ¶
- Constants
- Variables
- type Envelope
- type FlowContext
- type LogEntry
- type LogField
- type LogLevel
- type NodeDefine
- type NodeKind
- type NodeOnError
- type NodePolicy
- type NodeResult
- type NodeStatus
- type OutputDefine
- type Plan
- type PlanNode
- type RawConfig
- type RetryPolicy
- type ReturningConfig
- type ReturningSection
- type SwitchBinding
- type TraceContext
- type TraceLogger
- type TracingConfig
- type Workflow
- type WorkflowResult
- type WorkflowStatus
- type WorkflowVersion
Constants ¶
View Source
const ( LogLevelTrace = flowctx.LogLevelTrace LogLevelDebug = flowctx.LogLevelDebug LogLevelInfo = flowctx.LogLevelInfo LogLevelWarn = flowctx.LogLevelWarn LogLevelError = flowctx.LogLevelError NodeKindNode = workflow.NodeKindNode NodeKindSerial = workflow.NodeKindSerial NodeKindParallel = workflow.NodeKindParallel NodeKindCondition = workflow.NodeKindCondition NodeOnErrorFail = workflow.NodeOnErrorFail NodeOnErrorSkip = workflow.NodeOnErrorSkip NodeStatusPending = workflow.NodeStatusPending NodeStatusRunning = workflow.NodeStatusRunning NodeStatusSucceeded = workflow.NodeStatusSucceeded NodeStatusFailed = workflow.NodeStatusFailed NodeStatusSkipped = workflow.NodeStatusSkipped NodeStatusTimeout = workflow.NodeStatusTimeout NodeStatusRetrying = workflow.NodeStatusRetrying NodeStatusCanceled = workflow.NodeStatusCanceled ReturningSectionParams = workflow.ReturningSectionParams ReturningSectionVars = workflow.ReturningSectionVars ReturningSectionResults = workflow.ReturningSectionResults ReturningSectionResponse = workflow.ReturningSectionResponse ReturningSectionEnvelope = workflow.ReturningSectionEnvelope ReturningSectionWorkflow = workflow.ReturningSectionWorkflow ReturningSectionNodes = workflow.ReturningSectionNodes ReturningSectionEnvironment = workflow.ReturningSectionEnvironment ReturningSectionTrace = workflow.ReturningSectionTrace WorkflowStatusUnpublished = workflow.WorkflowStatusUnpublished WorkflowStatusPublished = workflow.WorkflowStatusPublished WorkflowStatusDisabled = workflow.WorkflowStatusDisabled DefaultService = identity.DefaultService MaxWorkflowIDLength = workflow.MaxWorkflowIDLength MaxWorkflowNameLength = workflow.MaxWorkflowNameLength MaxWorkflowDescriptionLength = workflow.MaxWorkflowDescriptionLength MaxWorkflowVersionLen = workflow.MaxWorkflowVersionLen MaxWorkflowRemarkLength = workflow.MaxWorkflowRemarkLength MaxEnvironmentLength = workflow.MaxEnvironmentLength MaxWorkspaceLength = workflow.MaxWorkspaceLength MaxNodeIDLength = workflow.MaxNodeIDLength MaxNodeNameLength = workflow.MaxNodeNameLength MaxNodeTypeLength = workflow.MaxNodeTypeLength )
Variables ¶
View Source
var ( NewFlowContext = flowctx.NewFlowContext FromContext = flowctx.FromContext Field = flowctx.Field Success = flowctx.Success SuccessValue = flowctx.SuccessValue Fail = flowctx.Fail NewID = identity.NewID NormalizeService = identity.NormalizeService CloneNodePolicy = workflow.CloneNodePolicy CloneTracingConfig = workflow.CloneTracingConfig )
Functions ¶
This section is empty.
Types ¶
type FlowContext ¶
type FlowContext = flowctx.FlowContext
type NodeDefine ¶
type NodeDefine = workflow.NodeDefine
type NodeOnError ¶
type NodeOnError = workflow.NodeOnError
type NodePolicy ¶
type NodePolicy = workflow.NodePolicy
type NodeResult ¶
type NodeResult = flowctx.NodeResult
type NodeStatus ¶
type NodeStatus = workflow.NodeStatus
type OutputDefine ¶
type OutputDefine = workflow.OutputDefine
type RetryPolicy ¶
type RetryPolicy = workflow.RetryPolicy
type ReturningConfig ¶
type ReturningConfig = workflow.ReturningConfig
type ReturningSection ¶
type ReturningSection = workflow.ReturningSection
type SwitchBinding ¶
type SwitchBinding = workflow.SwitchBinding
type TraceContext ¶
type TraceContext = flowctx.TraceContext
type TraceLogger ¶
type TraceLogger = flowctx.TraceLogger
type TracingConfig ¶
type TracingConfig = workflow.TracingConfig
type WorkflowResult ¶
type WorkflowResult = flowctx.WorkflowResult
type WorkflowStatus ¶
type WorkflowStatus = workflow.WorkflowStatus
type WorkflowVersion ¶
type WorkflowVersion = workflow.WorkflowVersion
Directories
¶
| Path | Synopsis |
|---|---|
|
Package flowctx 定义一次工作流执行的上下文、入口信封和结果协议。
|
Package flowctx 定义一次工作流执行的上下文、入口信封和结果协议。 |
|
Package identity 提供 FlowLink 共享标识生成能力。
|
Package identity 提供 FlowLink 共享标识生成能力。 |
|
internal
|
|
|
Package workflow 定义可编辑工作流、执行计划和生命周期协议。
|
Package workflow 定义可编辑工作流、执行计划和生命周期协议。 |
|
Package workflowsecret protects sensitive node configuration before workflow persistence.
|
Package workflowsecret protects sensitive node configuration before workflow persistence. |
Click to show internal directories.
Click to hide internal directories.