Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig()
Types ¶
type Config_t ¶
type Config_t struct {
Alarm struct {
ServerNickName string
Telegram struct {
Enabled bool
Token string
ChatID string
MessageThreadID int
}
Slack struct {
Enabled bool
WebHookURL string
}
}
API struct {
Host string
Port int
}
Disk struct {
FileSystems []string
PartUseLimit int
CheckInterval int
Unit string
}
Cpu struct {
LoadLimit float32
CheckInterval int
}
Memory struct {
UseLimit int
CheckInterval int
Unit string
}
}
var Config Config_t
Click to show internal directories.
Click to hide internal directories.