package
Version:
v0.0.10
Opens a new window with list of versions in this module.
Published: Oct 13, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Alert struct {
Name string `yaml:"name"`
Type string `yaml:"type"`
Command string `yaml:"command"`
Params []string `yaml:"params"`
}
type Config struct {
Hostname string `yaml:"hostname"`
CheckInterval time.Duration `yaml:"check_interval"`
Logger Logger `yaml:"logger"`
Messenger Messenger `yaml:"messenger"`
Storage Storage `yaml:"storage"`
Alerts []Alert `yaml:"alerts"`
}
type Logger struct {
Format string `yaml:"format"`
Level string `yaml:"level"`
}
type Messenger struct {
Type string `yaml:"type"`
Token string `yaml:"token"`
ChatID int64 `yaml:"chatid"`
}
type Storage struct {
Type string `yaml:"type"`
CooldownDuration time.Duration `yaml:"cooldown_duration"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.