package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Dec 14, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Pages []Page `yaml:"pages"`
Notify Notify `yaml:"notify"`
}
Config represents the configuration for the application.
Load generates and loads the configuration by
a specified path.
Returns an error if the lookup failed or the yaml
could not be unmarshalled.
type Email struct {
Address string `yaml:"address"`
Port string `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
Receivers []string `yaml:"receivers"`
}
Email represents SMTP email credentials.
type Notify struct {
Email *Email `yaml:"email"`
Slack *Slack `yaml:"slack"`
}
Notify represents the notification settings for when
an element has changed in the DOM.
type Page struct {
URL string `yaml:"url"`
Selector string `yaml:"selector"`
Schedule string `yaml:"schedule"`
}
Page represents a singular Pages to monitor.
type Slack struct {
Token string `yaml:"token"`
ChannelID string `yaml:"channel_id"`
}
Slack represents the Slack credentials configuration.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.