pinggraph

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeHome

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

ServeHome serves home page

func ServeWs

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

ServeWs serves web socket connection

func WebSocketHandler

func WebSocketHandler()

WebSocketHandler pubishes ping result to all open sockets

Types

type Node

type Node struct {
	Name     string
	Host     string
	Port     int
	User     string
	IsRemote bool
}

Node info

func LoadNodes

func LoadNodes(path string) []Node

LoadNodes loads yaml file containing a list of nodes

func (Node) Ping

func (n Node) Ping(r Node)

Ping remote node

Jump to

Keyboard shortcuts

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