Documentation ¶
Overview ¶
Package server serves the user interface and API, and manages the data model.
Index ¶
- func Build(out io.Writer, g *model.Graph) error
- func GeneratePackage(out io.Writer, g *model.Graph) (string, error)
- func GenerateRunner(out io.Writer, g *model.Graph) (string, error)
- func GuessPackagePath(srcPath string) (string, error)
- func Install(out io.Writer, g *model.Graph) error
- func New(uiParams view.Params) *server
- func SaveJSONFile(g *model.Graph) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build saves the graph as Go source code and tries to "go build" it. Console output from the command (*not* the compiled program) is written to out.
func GeneratePackage ¶
GeneratePackage writes the Go view of the graph to a file called generated.go in ${GOPATH}/src/${g.PackagePath}/, returning the full path. Messages from the generation process will be written to out.
func GenerateRunner ¶
GenerateRunner generates a `go run`-able; either the output package itself, or the package together with a temporary runner, returning the full path to the runnable path. Messages from the generation process will be written to out.
func GuessPackagePath ¶
GuessPackagePath attempts to find a sensible package path.
func Install ¶
Install saves the graph as Go source code and tries to "go install" it. Console output from the command (*not* the compiled program) is written to out.
func SaveJSONFile ¶
SaveJSONFile saves the JSON-encoded Graph to the SourcePath.
Types ¶
This section is empty.