Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type QGraph ¶ added in v0.2.0
type QGraph struct {
Inputs map[string]graph.Node
Filters map[string]graph.Node
Outputs map[string]graph.Node
Graph *graph.Graph
}
QGraph provides a DAG to keep the relations between input,filters and output
func (*QGraph) AddFilter ¶ added in v0.6.0
AddFilter adds a filter to the graph, which either listens to - a input directly if the name is found in the inputs list - a filter of some sort. if parents are empty it will be added without a parent
func (*QGraph) AddOutput ¶ added in v0.2.0
AddOutput adds a handler to the graph, which either listens to - a input directly if the name is found in the inputs list - a filter of some sort. if parents are empty it will be added without a parent
func (*QGraph) ConnectFilters ¶ added in v0.6.0
func (qg *QGraph) ConnectFilters()
ConnectFilters looks for filters w/o inputs and will connect them to all inputs
func (*QGraph) ConnectOutputs ¶ added in v0.6.0
func (qg *QGraph) ConnectOutputs()
ConnectOutputs looks for outputs w/o inputs (inputs/filters) and will connect them to all leafs of the inputs/filter graph.
func (*QGraph) PrintGraph ¶ added in v0.6.0
func (qg *QGraph) PrintGraph()
PrintGraph outputs the graph to stdout