hiboot: hidevops.io/hiboot/pkg/factory/depends Index | Files | Directories

package depends

import "hidevops.io/hiboot/pkg/factory/depends"

Package depends provides dependency resolver for factory


Package Files

depresolver.go deptree.go


var ErrCircularDependency = errors.New("circular dependency found")

ErrCircularDependency report that circular dependency found

func Resolve Uses

func Resolve(data []*factory.MetaData) (result []*factory.MetaData, err error)

Resolve resolve dependencies

type Graph Uses

type Graph []*Node

Graph is the collection of node

type Node Uses

type Node struct {
    // contains filtered or unexported fields

Node represents a single node in the graph with it's dependencies

func NewNode Uses

func NewNode(index int, data interface{}, deps ...*Node) *Node

NewNode creates a new node


barPackage bar is the test package for package depends
fakePackage fake is the test package for package depends
fooPackage foo is the test package for package depends

Package depends imports 8 packages (graph) and is imported by 2 packages. Updated 2019-09-11. Refresh now. Tools for package owners.