formatters

package
v0.0.0-...-5e02a82 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDot

func BuildDot(ircmap []irctree.Server, displayAll bool) *gographviz.Graph

func BuildJson

func BuildJson(ircmap *irctree.Servers, displayAll bool) string

func BuildPNG

func BuildPNG(g *gographviz.Graph, dot *exec.Cmd) ([]byte, error)

BuildPNG returns a PNG from a gographviz graph

Types

type Graph

type Graph struct {
	Servers []irctree.Server
	Links   []Link
}
type Link struct {
	Source  string `json:"source"`
	Target  string `json:"target"`
	Lag     int    `json:"lag"`
	Transit int    `json:"transit"`
}

Jump to

Keyboard shortcuts

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