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 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 Grapher ¶
type Grapher interface {
Graph(dir string, unit *unit.SourceUnit, c *config.Repository) (*Output, error)
}
type Output ¶
type Output struct { Symbols []*graph.Symbol `json:",omitempty"` Refs []*graph.Ref `json:",omitempty"` Docs []*graph.Doc `json:",omitempty"` }
func Graph ¶
func Graph(dir string, u *unit.SourceUnit, c *config.Repository) (*Output, error)
Graph uses the registered grapher (if any) to graph the source unit (whose repository is cloned to dir).
Click to show internal directories.
Click to hide internal directories.