Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MonConfig ¶
type MonConfig struct {
SMTPServer string `json:"smtp_server" yaml:"smtp_server"`
SMTPPort int `json:"smtp_port" yaml:"smtp_port"`
SMTPUsername string `json:"smtp_username" yaml:"smtp_username"`
SMTPPassword string `json:"smtp_password" yaml:"smtp_password"`
FromEmail string `json:"from_email" yaml:"from_email"`
ToEmails []string `json:"to_emails" yaml:"to_emails"`
TelegramBotToken string `json:"telegram_bot_token" yaml:"telegram_bot_token"`
TelegramChatIDs []int64 `json:"telegram_chat_ids" yaml:"telegram_chat_ids"`
DiskUsageAlertThreshold float64 `json:"disk_usage_alert_threshold" yaml:"disk_usage_alert_threshold"`
}
func ReadMonConfig ¶
Click to show internal directories.
Click to hide internal directories.