graph

package
Version: v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph added in v0.3.0

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

func NewGraph added in v0.3.0

func NewGraph(nodes []Node) Graph

func (*Graph) AddDep added in v0.3.0

func (g *Graph) AddDep(targetNode Node, dep string) error

func (*Graph) AddNode added in v0.3.0

func (g *Graph) AddNode(node Node)

func (*Graph) BuildGraph added in v0.3.0

func (g *Graph) BuildGraph(nodes []Node)

func (*Graph) IterSorted added in v0.3.0

func (g *Graph) IterSorted(callback func(Node) error) []error

func (*Graph) IterTarget added in v0.3.0

func (g *Graph) IterTarget(target string, callback func(Node) error) []error

func (*Graph) LongestTarget added in v0.3.0

func (g *Graph) LongestTarget(target string) (int, []error)

func (*Graph) ResolveTarget added in v0.3.0

func (g *Graph) ResolveTarget(target string, callback func(Node) error) []error

func (*Graph) WaitForDeps added in v0.3.0

func (g *Graph) WaitForDeps(callback func(Node) error, servicesWg *sync.WaitGroup) func(Node) error

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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