dag

package
v0.0.0-...-2cfd4b1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEdgeAlreadyExists      = errors.New("edge already exists")
	ErrRuleNameAlreadyDefined = errors.New("rule name already exists")
	ErrRuleNotFound           = errors.New("rule not found")
)

Functions

This section is empty.

Types

type Dag

type Dag struct {
	Rules map[string]*rule.Rule
}

func NewDag

func NewDag() Dag

func (Dag) AddDependency

func (dag Dag) AddDependency(parentId, childId string) error

func (*Dag) AddRule

func (dag *Dag) AddRule(rule *rule.Rule) error

func (Dag) GetSources

func (dag Dag) GetSources() []*rule.Rule

Jump to

Keyboard shortcuts

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