visualizer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLink(src, dest string)

func AddNode

func AddNode(id string)
func RemoveLink(src, dest string)

func RemoveNode

func RemoveNode(id string)

func UpdateAvgNeighbors

func UpdateAvgNeighbors(avg float64)

func UpdateConvergence

func UpdateConvergence(c float64)

func Writer

func Writer(event *Event)

Types

type Event

type Event struct {
	Type   uint32 `json:"type"`
	Source string `json:"source"`
	Dest   string `json:"dest"`
}

type Server

type Server struct {
	Start chan struct{}
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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