host

package
v0.0.0-...-8d9d806 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PingHost

func PingHost(host *Host)

Types

type Host

type Host struct {
	ID       string `json:"ID"`       // ID
	Group    string `json:"group"`    // Group Name
	Hostname string `json:"Hostname"` // HOSTNAME
	HostIP   string `json:"HostIP"`   // HOST IP
	IsAlive  bool   `json:"IsAlive"`  // say if there is connection to this host
	PingData string `json:"PingData"` // data from last ping
}

host struct

func GetHostsFromJson

func GetHostsFromJson(p string) (hosts []Host)

/////////////////////////////////////////////// Host util functions

Jump to

Keyboard shortcuts

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