Documentation ¶
Overview ¶
TODO(sqs): remove this file
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Graphers = make(map[reflect.Type]Grapher)
Graphers holds all registered graphers.
Functions ¶
func NormalizeData ¶
NormalizeData sorts data and performs other postprocessing.
func Register ¶
func Register(emptySourceUnit unit.SourceUnit, grapher Grapher)
Register sets the grapher to be used for source units of the given type. If Register is called twice with the same name or if grapher is nil, it panics
Types ¶
type GraphUnitRule ¶ added in v0.0.7
type GraphUnitRule struct { Unit *unit.SourceUnit Tool *srclib.ToolRef // contains filtered or unexported fields }
func (*GraphUnitRule) Prereqs ¶ added in v0.0.7
func (r *GraphUnitRule) Prereqs() []string
func (*GraphUnitRule) Recipes ¶ added in v0.0.7
func (r *GraphUnitRule) Recipes() []string
func (*GraphUnitRule) SourceUnit ¶ added in v0.0.22
func (r *GraphUnitRule) SourceUnit() *unit.SourceUnit
func (*GraphUnitRule) Target ¶ added in v0.0.7
func (r *GraphUnitRule) Target() string
type Grapher ¶
type Grapher interface {
Graph(dir string, unit *unit.SourceUnit, c *config.Repository) (*Output, error)
}
type MultiError ¶ added in v0.0.16
type MultiError []error
func ValidateDefs ¶ added in v0.0.30
func ValidateDefs(defs []*graph.Def) (errs MultiError)
func ValidateRefs ¶ added in v0.0.16
func ValidateRefs(refs []*graph.Ref) (errs MultiError)
func (MultiError) Error ¶ added in v0.0.16
func (e MultiError) Error() string
Click to show internal directories.
Click to hide internal directories.