Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ParseConfig ¶
func ParseConfig(ver string)
func SaveConfig ¶ added in v0.5.0
func SaveConfig() error
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
}
Main Config
type PingSt ¶ added in v0.4.0
type PingSt struct {
SendPk int
RevcPk int
LossPk int
MinDelay float64
AvgDelay float64
MaxDelay float64
}
Ping Stuct
type Target ¶
type Target struct {
Name string
Addr string
Type string
Thdchecksec int
Thdoccnum int
Thdavgdelay int
Thdloss int
}
Target Config
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.