Documentation ¶
Index ¶
- Constants
- type DiscordNotification
- type EmailNotification
- type INotification
- func NewDiscordNotification(conf *settings.Settings) INotification
- func NewEmailNotification(conf *settings.Settings) INotification
- func NewPushoverNotification(conf *settings.Settings) INotification
- func NewSlackNotification(conf *settings.Settings) INotification
- func NewTelegramNotification(conf *settings.Settings) INotification
- type INotificationManager
- type PushoverNotification
- type SlackNotification
- type TelegramNotification
Constants ¶
View Source
const ( Email = "email" Slack = "slack" Discord = "discord" Telegram = "telegram" Pushover = "pushover" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordNotification ¶
type DiscordNotification struct {
// contains filtered or unexported fields
}
func (*DiscordNotification) Send ¶
func (n *DiscordNotification) Send(domain, currentIP string) error
type EmailNotification ¶
type EmailNotification struct {
// contains filtered or unexported fields
}
func (*EmailNotification) Send ¶
func (n *EmailNotification) Send(domain, currentIP string) error
type INotification ¶
func NewDiscordNotification ¶
func NewDiscordNotification(conf *settings.Settings) INotification
func NewEmailNotification ¶
func NewEmailNotification(conf *settings.Settings) INotification
func NewPushoverNotification ¶
func NewPushoverNotification(conf *settings.Settings) INotification
func NewSlackNotification ¶
func NewSlackNotification(conf *settings.Settings) INotification
func NewTelegramNotification ¶
func NewTelegramNotification(conf *settings.Settings) INotification
type INotificationManager ¶
func GetNotificationManager ¶
func GetNotificationManager(conf *settings.Settings) INotificationManager
type PushoverNotification ¶
type PushoverNotification struct {
// contains filtered or unexported fields
}
func (*PushoverNotification) Send ¶
func (n *PushoverNotification) Send(domain, currentIP string) (err error)
type SlackNotification ¶
type SlackNotification struct {
// contains filtered or unexported fields
}
func (*SlackNotification) Send ¶
func (n *SlackNotification) Send(domain, currentIP string) (err error)
type TelegramNotification ¶
type TelegramNotification struct {
// contains filtered or unexported fields
}
func (*TelegramNotification) Send ¶
func (n *TelegramNotification) Send(domain, currentIP string) (err error)
Click to show internal directories.
Click to hide internal directories.