graph

package
v0.0.0-...-7fb7d26 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAG

type DAG struct {
	Nodes  map[string]*NodeModule
	Edges  map[string][]string
	Sorted [][]*NodeModule
}

func BuildGraph

func BuildGraph(manifest *fh.Manifest) *DAG

func (*DAG) Run

func (dag *DAG) Run() error

func (*DAG) RunModule

func (dag *DAG) RunModule(selectedNode *NodeModule) error

type ModuleStatus

type ModuleStatus string
const (
	StatusPending ModuleStatus = "pending"
	StatusRunning ModuleStatus = "running"
	StatusSuccess ModuleStatus = "success"
	StatusFailed  ModuleStatus = "failed"
)

type NodeModule

type NodeModule struct {
	LuaManager *engine.LuaManager
	ModuleName string
	ScriptPath string
	Depends    []*NodeModule
	Children   []*NodeModule
	DataOutput string
	Adapter    string
	InArgs     map[string]any
	OutArgs    map[string]any
	Payloads   map[string]*df.Dataframe
	Status     ModuleStatus
	ExportFlag bool
	Context    *RuntimeContext
}

func (*NodeModule) Export

func (nm *NodeModule) Export() error

func (*NodeModule) Run

func (nm *NodeModule) Run() ModuleStatus

type OutputType

type OutputType string

type RuntimeContext

type RuntimeContext struct {
	Global map[string]any
}

Jump to

Keyboard shortcuts

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