graphviz

package
v0.0.0-...-7baeb4b Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package graphviz converts service graphs into Graphviz DOT language.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphToDotLanguage

func GraphToDotLanguage(g Graph) (dotLang string, err error)

GraphToDotLanguage converts a graphviz graph to a Graphviz DOT language string via a template.

func ServiceGraphToDotLanguage

func ServiceGraphToDotLanguage(
	serviceGraph graph.ServiceGraph) (dotLang string, err error)

ServiceGraphToDotLanguage converts a ServiceGraph to a Graphviz DOT language string.

Types

type Edge

type Edge struct {
	From      string
	To        string
	StepIndex int
}

Edge represents a directed edge in the Graphviz graph.

type Graph

type Graph struct {
	Nodes []Node
	Edges []Edge
}

Graph represents a Graphviz graph.

func ServiceGraphToGraph

func ServiceGraphToGraph(sg graph.ServiceGraph) (Graph, error)

ServiceGraphToGraph converts a service graph to a graphviz graph.

type Node

type Node struct {
	Name         string
	Type         string
	ErrorRate    string
	ResponseSize string
	Steps        [][]string
}

Node represents a node in the Graphviz graph.

Jump to

Keyboard shortcuts

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