solvar

package module
v0.0.0-...-bd68c8a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

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
)

Jump to

Keyboard shortcuts

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