Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DLock sync.Mutex
View Source
var (
Root string
)
Functions ¶
Types ¶
type Config ¶
type Config struct { Ver string Port int Name string Timeout string Ip string Db string Password string Alerthistory int Alertcycle int Alertsound string Thdchecksec int Thdoccnum int Thdavgdelay int Thdloss int Tline string Tsymbolsize string Targets []Target }
func ReadConfig ¶
Opening (or creating) config file in JSON format
type PingResult ¶
type PingResult struct { MaxDelay string MinDelay string AvgDelay string SendPk string RevcPk string LossPk string LastCheck string }
PING RESULT
type PingResultList ¶
type PingResultList struct { Lock sync.Mutex PingResult map[string]PingResult }
type TargetStatus ¶
type Todata ¶
type Todata struct { Area []Todataarea `json:"area"` Line []Todataline `json:"line"` }
type Todataarea ¶
type Todataarea struct { Name string `json:"name"` ItemStyle ToitemStyle `json:"itemStyle"` }
type Todataline ¶
type Todataline struct { Source string `json:"source"` Target string `json:"target"` ItemStyle ToitemStyle `json:"itemStyle"` }
type ToitemStyle ¶
Click to show internal directories.
Click to hide internal directories.