Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependencyGraph ¶
type DependencyGraph struct {
// contains filtered or unexported fields
}
func (*DependencyGraph) Add ¶
func (d *DependencyGraph) Add(o ...Object)
func (*DependencyGraph) BuildCache ¶
func (d *DependencyGraph) BuildCache()
func (*DependencyGraph) Solve ¶
func (d *DependencyGraph) Solve(id Identifier) (ob [][]*Object, err error)
type Identifier ¶
type Identifier string
type Object ¶
type Object struct { Id []Identifier Rel []Relation }
type Relation ¶
type Relation struct { Id Identifier T RelationType }
type RelationType ¶
type RelationType uint
const ( RelationTypeNeed RelationType = iota RelationTypeReject )
Click to show internal directories.
Click to hide internal directories.