package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Aug 26, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package assertnode 提供用于断言上下文数据的默认 node 节点。
Definition 返回断言节点的完整注册定义。
type Config struct {
Path string `json:"path"`
Op string `json:"op"`
Value interface{} `json:"value"`
Message string `json:"message"`
}
Config 是 assert node 从 node.config 解码得到的内部配置。
Node 返回 NodeResult{Pass:false} 表示断言不通过,让 runtime 统一决定是否重试、跳过或失败。
func (e *Node) Execute(fc *core.FlowContext, node *core.NodeDefine) (interface{}, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.