Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmailNotifier ¶
type EmailNotifier struct {
// contains filtered or unexported fields
}
EmailNotifier implements a simple email sender
type INotification ¶
type INotification interface {
Send(hostname string, domainCount int, domainsStr, ipv4, ipv6 string) error
}
INotification describes the interface of a type able to send a notification
type INotificationManager ¶
type INotificationManager interface { GetNotifierCount() int Send(hostname string, domainCount int, domainsStr, ipv4, ipv6 string) error }
INotificationManager describes the interface the notifications.Manager
func GetManager ¶
func GetManager(conf *config.Notifications) INotificationManager
GetManager returns the notification manager
type Manager ¶
type Manager struct {
Notifiers []INotification
}
Manager wraps types that have the ability to send a notification
func (*Manager) GetNotifierCount ¶
type SipGateSmsNotifier ¶
type SipGateSmsNotifier struct {
// contains filtered or unexported fields
}
SipGateSmsNotifier implements the sipgate IO sms sender
sipgate docs:
https://api.sipgate.com/v2/doc#/sessions/sendWebSms https://github.com/sipgate-io/sipgateio-sendsms-python
request url:
https://api.sipgate.com/v2/sessions/sms
json payload:
{ "smsId": "smsId", "recipient": "0123456789", "message": "The IP address for domain 'example.com' has been updated to '127.0.0.1'" }
Click to show internal directories.
Click to hide internal directories.