Setup repeat camera down notifications #24
This commit is contained in:
1 parent
7b24dad5b9
commit
e6ccd8f1d7
8 files changed
+38
-46
No files matched your search
@@ -4,12 +4,12 @@ import "os"
|
||||
|
||||
import "gopkg.in/yaml.v3"
|
||||
|
||||
|
||||
type Config struct {
|
||||
Cameras map[string]string `yaml:"cameras"`
|
||||
PingIntervalSeconds int64 `yaml:"ping_interval_s"`
|
||||
PingTimeoutSeconds int64 `yaml:"ping_timeout_s"`
|
||||
ConsecutiveDownThreshold int `yaml:"consecutive_down_threshold"`
|
||||
Cameras map[string]string `yaml:"cameras"`
|
||||
PingIntervalSeconds int64 `yaml:"ping_interval_s"`
|
||||
PingTimeoutSeconds int64 `yaml:"ping_timeout_s"`
|
||||
ConsecutiveDownThreshold int `yaml:"consecutive_down_threshold"`
|
||||
NotificationRepeatThreshold int `yaml:"notification_repeat_threshold"`
|
||||
}
|
||||
|
||||
func ReadConfig(configFilename string) Config {
|
||||
|
||||
Reference in new issue
Block a user