Documentation
¶
Index ¶
Constants ¶
View Source
const ( FlagDomains = "domains" FlagEvery = "every" FlagSleep = "sleep" FlagThreshold = "threshold" FlagLogFormat = "log-format" FlagLogLevel = "log-level" FlagMetricsEnabled = "metrics-enabled" FlagMetricsAddress = "metrics-address" FlagTelegramChat = "telegram-chat" FlagTelegramToken = "telegram-token" FlagGotifyURL = "gotify-url" FlagGotifyToken = "gotify-token" )
View Source
const EnvPrefix = "WATCH_"
Variables ¶
View Source
var ErrNoDomain = errors.New("no domain was configured")
Functions ¶
func RegisterCompletions ¶
Types ¶
type Config ¶
type Config struct { Domains []string Every time.Duration Sleep time.Duration Threshold []int TelegramChat int64 TelegramToken string GotifyURL string GotifyToken string MetricsEnabled bool MetricsAddress string // contains filtered or unexported fields }
func (*Config) RegisterFlags ¶
Click to show internal directories.
Click to hide internal directories.