Documentation
¶
Overview ¶
Package server publishes the architecture graph over HTTP for a viewer: the graph as JSON, a stream of change notifications, and the source of the files in the graph. It watches the repositories and rebuilds the graph when a source file or a .metrics snapshot changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server holds the latest graph and the clients listening for changes.
func New ¶
func New(ctx context.Context, roots []string, ui string, logger *log.Logger, inputs graph.MutationInputs) (*Server, error)
New builds the first graph of roots, under ctx.
Click to show internal directories.
Click to hide internal directories.