github.com/15mga/kiwi@v0.0.2-0.20240324021231-b95d5c3ac751/graph/conf.go (about)

     1  package graph
     2  
     3  import (
     4  	"github.com/15mga/kiwi/util"
     5  )
     6  
     7  type PointConf struct {
     8  	Type    TPoint
     9  	Name    string
    10  	Comment string
    11  }
    12  
    13  type NodeConf struct {
    14  	Name             string
    15  	Comment          string
    16  	M                util.M
    17  	Ins              []PointConf
    18  	Outs             []PointConf
    19  	PointToProcessor map[string]string
    20  }
    21  
    22  type LinkConf struct {
    23  	OutNode  string
    24  	OutPoint string
    25  	InNode   string
    26  	InPoint  string
    27  }
    28  
    29  type Conf struct {
    30  	Name      string
    31  	Comment   string
    32  	Nodes     []NodeConf
    33  	Links     []LinkConf
    34  	SubGraphs []SubConf
    35  }
    36  
    37  type SubConf struct {
    38  	Name      string
    39  	Comment   string
    40  	Nodes     []NodeConf
    41  	Links     []LinkConf
    42  	SubGraphs []SubConf
    43  	In        string
    44  	Out       string
    45  }