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 Ping 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 Db Result
type PingResultList ¶
type PingResultList struct { Lock sync.Mutex PingResult map[string]PingResult }
Ping Db Result List
type PingSt ¶ added in v0.4.0
type PingSt struct { SendPk string RevcPk string LossPk string MinDelay string AvgDelay string MaxDelay string }
Ping Stuct
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.