graph

package
v0.0.0-...-4506ac0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Zk *gozk.Conn

	EdgeAttr     = map[string]string{"color": trieColor}
	PoolEdgeAttr = map[string]string{"color": poolColor}
	NextEdgeAttr = map[string]string{"color": ruleColor}
	RuleEdgeAttr = map[string]string{"color": ruleColor}
	HostEdgeAttr = map[string]string{"color": hostColor}
)

Functions

func DotTrie

func DotTrie(name string, json bool) (string, error)

func DrawHosts

func DrawHosts(graph *ggv.Graph, parentName string, hosts []string)

func DrawPool

func DrawPool(graph *ggv.Graph, name string, p Pool)

func DrawRule

func DrawRule(graph *ggv.Graph, name string, r Rule)

func DrawTrie

func DrawTrie(graph *ggv.Graph, name string, t Trie)

func GetColorAttr

func GetColorAttr(path string) (string, string, string)

func IsHosts

func IsHosts(path string) bool

func IsPool

func IsPool(path string) bool

func IsRule

func IsRule(path string) bool

func IsTrie

func IsTrie(path string) bool

func JSONToArray

func JSONToArray(data []byte) (map[string]interface{}, error)

func StrikethroughString

func StrikethroughString(str string) string

func TrieDot

func TrieDot(w http.ResponseWriter, r *http.Request)

func TrieJson

func TrieJson(w http.ResponseWriter, r *http.Request)

func TrieSvg

func TrieSvg(w http.ResponseWriter, r *http.Request)

func VisualizeIndex

func VisualizeIndex(w http.ResponseWriter, r *http.Request)

Types

type Edges

type Edges struct {
	Pools map[string]bool
	Rules map[string]bool
	Tries map[string]bool
}

type Pool

type Pool struct {
	HealthCheckEvery string
	Degraded         string
	Critical         string
	Healthz          string
	Request          string
	Hosts            []string
}

func ParsePool

func ParsePool(name string) (Pool, error)

type Rule

type Rule struct {
	Type  string
	Value string
	Next  string
	Pool  string
}

func ParseRule

func ParseRule(name string) (Rule, error)

type Trie

type Trie struct {
	Rules []string
}

func ParseTrie

func ParseTrie(name string) (Trie, error)

Jump to

Keyboard shortcuts

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