graph

package
v0.0.0-...-9b54361 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

func CreateGraph

func CreateGraph(settings []string, nodeSetting NodeSettings, packageNodes []PackageNode, packageRelations []PackageRelation) (graph Graph)

func (Graph) BuildGraphString

func (g Graph) BuildGraphString() string

type NodeSettings

type NodeSettings struct {
	FontSize int
	Shape    string //FUTURE: make enumerable?
}

func (NodeSettings) ToGraphString

func (ns NodeSettings) ToGraphString() string

type PackageNode

type PackageNode struct {
	// contains filtered or unexported fields
}

func CreatePackageNode

func CreatePackageNode(fileName string, packagePath string, rows []PackageNodeRow) PackageNode

func (*PackageNode) AddPackageNodeRow

func (pn *PackageNode) AddPackageNodeRow(row PackageNodeRow)

type PackageNodeRow

type PackageNodeRow struct {
	// contains filtered or unexported fields
}

func CreatePackageNodeRow

func CreatePackageNodeRow(fileName string, functions []string, types []string, variables []string) PackageNodeRow

type PackageRelation

type PackageRelation struct {
	From string
	To   string
}

func (PackageRelation) ToGraphString

func (pr PackageRelation) ToGraphString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL