package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Jul 19, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Notification Notification `yaml:"notification"`
URL []string `yaml:"url"`
PollingInterval int `yaml:"pollingInterval"`
LogFile string `yaml:"logFile"`
}
Config is the configuration for a monitor.
New returns a decoded Config from a YAML file at the given path.
type Notification struct {
Client string `yaml:"client"`
Token string `yaml:"token"`
AppToken string `yaml:"appToken"`
Channel string `yaml:"channel"`
User string `yaml:"user"`
}
Notification holds the configuration for a notification client.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.