dag

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResult

func GetResult(ctx context.Context) (r map[string]string)

func SetResult

func SetResult(ctx context.Context, r map[string]string) context.Context

func SetResultKV

func SetResultKV(ctx context.Context, k, v string) context.Context

Types

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

func New

func New() *Graph

func NewJson

func NewJson(buf []byte) *Graph

func (*Graph) AddEdge

func (s *Graph) AddEdge(from, to string)

func (*Graph) AddNode

func (s *Graph) AddNode(name, propmt string)

func (*Graph) IsEmpty

func (s *Graph) IsEmpty() bool

func (*Graph) Run

func (s *Graph) Run(ctx context.Context, f func(context.Context, string, string) error) (e error)

type GraphNode

type GraphNode struct {
	Name  string   `json:"name"`
	Input string   `json:"input"`
	After []string `json:"after"`
}

Jump to

Keyboard shortcuts

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