Documentation ¶
Index ¶
- Constants
- type Graph
- func (graph *Graph) Collect()
- func (graph *Graph) Head() *Node
- func (graph *Graph) MarshalDOT() ([]byte, error)
- func (graph *Graph) NewNode(label string, typ NodeType) *Node
- func (graph *Graph) NewSubgraph(head, tail *Node) *Graph
- func (graph *Graph) SetError(err error) error
- func (graph *Graph) Tail() *Node
- type Node
- type NodeType
Constants ¶
View Source
const ( // NodeTerminal is used for terminal nodes, usually the beginnings or ends of processes. // It is represented by a grey oval. NodeTerminal = NodeType(iota) // NodeProcess is used for general-purpose processing nodes. // It is represented by a blue rectangle. NodeProcess // NodeDecision is used for control flow decisions, such as if statements and switch statements. // It is represented by a green diamond. NodeDecision // NodePreparation is used for preparation or initialisation steps, such as setting up subroutines or iterations. // It is represented by an orange elongated hexagon. NodePreparation // NodeInput is used for data inputs, such as from databases or manual inputs by a user. // It is represented by dark turquoise parallelogram. NodeInput // NodeOutput is used for data outputs, such as writing to a file or to a database. // It is represented by dark violet parallelogram. NodeOutput )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func (*Graph) MarshalDOT ¶
func (*Graph) NewSubgraph ¶
type Node ¶
type Node struct { Err error // contains filtered or unexported fields }
func (*Node) Attributes ¶
Attributes implements encoding.Attributer.
Click to show internal directories.
Click to hide internal directories.