core

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package core 提供 FlowLink 共享协议的稳定聚合入口。

具体实现按职责位于 workflow、flowctx 和 identity 子包;根包通过类型别名保留 简洁且兼容的公共入口。core 不依赖运行时、后台、前端或持久化实现。

Index

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 Envelope

type Envelope = flowctx.Envelope

type FlowContext

type FlowContext = flowctx.FlowContext

type LogEntry

type LogEntry = flowctx.LogEntry

type LogField

type LogField = flowctx.LogField

type LogLevel

type LogLevel = flowctx.LogLevel

type NodeDefine

type NodeDefine = workflow.NodeDefine

type NodeKind

type NodeKind = workflow.NodeKind

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 Plan

type Plan = workflow.Plan

type PlanNode

type PlanNode = workflow.PlanNode

type RawConfig

type RawConfig = workflow.RawConfig

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 Workflow

type Workflow = workflow.Workflow

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.

Jump to

Keyboard shortcuts

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