flower

package
v0.0.0-...-b8e3197 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindYamlFiles

func FindYamlFiles(dirs []string) ([]string, error)

func FlowDocsFromDirectories

func FlowDocsFromDirectories(dirs []string) error

func FlowGraph

func FlowGraph(flows []*Flow) map[string]*Node

Types

type Edge

type Edge struct {
	Caller *Node
	Callee *Node
}

Types with thanks to go/callgraph/callgraph.go

type Flow

type Flow struct {
	FlowFile
	Name     string
	Doc      string
	Code     string
	Line     int
	YamlNode *yaml.Node
}

func FlowsFromDirectories

func FlowsFromDirectories(dirs []string) (flows []*Flow, err error)

func FlowsFromYaml

func FlowsFromYaml(yamlFile string) (flows []*Flow, err error)

type FlowFile

type FlowFile struct {
	Path string
}

func (*FlowFile) Contents

func (f *FlowFile) Contents() ([]byte, error)

type FlowTemplateBinding

type FlowTemplateBinding struct {
	Flows []*Flow
	Nodes map[string]*Node
}

type Graph

type Graph struct {
	Root  *Node           // the distinguished root node
	Nodes map[*Flow]*Node // all nodes by function
}

type Node

type Node struct {
	Flow *Flow
	ID   int
	In   []*Edge
	Out  []*Edge
}

Jump to

Keyboard shortcuts

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