Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server struct { Port int Endpoint string } Checker struct { Interval int Timeout int } URLMonitors []URLMonitorConfig Slack SlackConfig Telegram TelegramConfig Twilio TwilioConfig }
Config represents configuration set for the program to run
func CreateConfigurationFromFile ¶
CreateConfigurationFromFile Returns a new configuration loaded from a file
type SlackConfig ¶
type SlackConfig struct { Enabled bool WebhookURL string Messages SlackMessagesConfig }
type SlackMessagesConfig ¶
type TelegramConfig ¶
type TelegramConfig struct { Enabled bool Token string ChatId int64 Messages TelegramMessagesConfig }
type TelegramMessagesConfig ¶
type TwilioConfig ¶
type TwilioConfig struct {
SMS TwilioSMSConfig
}
type TwilioSMSBodyConfig ¶
type TwilioSMSConfig ¶
type URLMonitorConfig ¶
URLMonitorConfig represents each url monitor
Click to show internal directories.
Click to hide internal directories.