Versions in this module Expand all Collapse all v0 v0.0.1 Dec 5, 2017 Changes in this version + var PartFactories = map[string]PartFactory + type Channel struct + Cap int + Name string + Type string + func (c *Channel) IsSimple() bool + func (c *Channel) Readers() []*Node + func (c *Channel) Writers() []*Node + type Graph struct + Channels map[string]*Channel + Imports []string + IsCommand bool + Name string + Nodes map[string]*Node + PackagePath string + SourcePath string + func LoadJSON(r io.Reader, sourcePath string) (*Graph, error) + func LoadJSONFile(path string) (*Graph, error) + func New(srcPath string) *Graph + func (g *Graph) AllImports() []string + func (g *Graph) Build() error + func (g *Graph) DeclaredChannels(chans []string) []*Channel + func (g *Graph) Definitions() string + func (g *Graph) GeneratePackage() (string, error) + func (g *Graph) Install() error + func (g *Graph) PackageName() string + func (g *Graph) RecomputeDegrees() + func (g *Graph) RecomputeNode(n *Node) error + func (g *Graph) Run(stdout, stderr io.Writer) error + func (g *Graph) SaveJSONFile() error + func (g *Graph) WriteDotTo(dst io.Writer) error + func (g *Graph) WriteGoTo(w io.Writer) error + func (g *Graph) WriteJSONTo(w io.Writer) error + func (g *Graph) WriteRawGoTo(w io.Writer) error + type Node struct + Multiplicity uint + Name string + Wait bool + func (n *Node) Channels() (read, written source.StringSet) + func (n *Node) ChannelsRead() []string + func (n *Node) ChannelsWritten() []string + func (n *Node) Copy() *Node + func (n *Node) ImplBody() string + func (n *Node) ImplHead() string + func (n *Node) ImplTail() string + func (n *Node) MarshalJSON() ([]byte, error) + func (n *Node) RenameChannel(from, to string) + func (n *Node) String() string + func (n *Node) UnmarshalJSON(j []byte) error + type Part interface + AssociateEditor func(*template.Template) error + Channels func() (read, written source.StringSet) + Clone func() interface{} + Help func() template.HTML + Impl func() (head, body, tail string) + Imports func() []string + RenameChannel func(from, to string) + TypeKey func() string + Update func(*http.Request) error + type PartFactory func() Part