Documentation
¶
Index ¶
- func GenerateMailService(senderAddress string, smtpHostAddr string, smtpHostPort int, ...) (*mail.Mail, error)
- func GenerateMsteamsService(webHooks []string) (*msteams.MSTeams, error)
- func GenerateSlackService(token string, channels []string) (*slack.Slack, error)
- type MailSettings
- type MsteamsSettings
- type SlackSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMailService ¶
func GenerateMailService(senderAddress string, smtpHostAddr string, smtpHostPort int, smtpAuthUser string, smtpAuthPassword string, receiverAddresses []string) (*mail.Mail, error)
GenerateMailService generates a mail service
func GenerateMsteamsService ¶
GenerateMailService generates a mail service
Types ¶
type MailSettings ¶
type MailSettings struct {
Name string `mapstructure:"name,omitempty"`
Type string `mapstructure:"type,omitempty"`
Enabled *bool `mapstructure:"enabled,omitempty"`
SendResolved *bool `mapstructure:"sendResolved,omitempty"`
Subject string `mapstructure:"subject,omitempty"`
Message string `mapstructure:"message,omitempty"`
Notifier *notify.Notify `mapstructure:"-,omitempty" deepcopier:"skip"`
SenderAddress string `mapstructure:"senderAddress,omitempty"`
SmtpHostAddr string `mapstructure:"smtpHostAddr,omitempty"`
SmtpHostPort int `mapstructure:"smtpHostPort,omitempty"`
SmtpAuthUser string `mapstructure:"smtpAuthUser,omitempty"`
SmtpAuthPassword string `mapstructure:"smtpAuthPassword,omitempty" redacted:"true"`
ReceiverAddresses []string `mapstructure:"receiverAddresses,omitempty"`
}
type MsteamsSettings ¶
type MsteamsSettings struct {
Name string `mapstructure:"name,omitempty"`
Type string `mapstructure:"type,omitempty"`
Enabled *bool `mapstructure:"enabled,omitempty"`
SendResolved *bool `mapstructure:"sendResolved,omitempty"`
Subject string `mapstructure:"subject,omitempty"`
Message string `mapstructure:"message,omitempty"`
Notifier *notify.Notify `mapstructure:"-,omitempty" deepcopier:"skip"`
WebHooks []string `mapstructure:"webhooks,omitempty" redacted:"true"`
}
type SlackSettings ¶
type SlackSettings struct {
Name string `mapstructure:"name,omitempty"`
Type string `mapstructure:"type,omitempty"`
Enabled *bool `mapstructure:"enabled,omitempty"`
SendResolved *bool `mapstructure:"sendResolved,omitempty"`
Notifier *notify.Notify `mapstructure:"-,omitempty" deepcopier:"skip"`
Subject string `mapstructure:"subject,omitempty"`
Message string `mapstructure:"message,omitempty"`
OauthToken string `mapstructure:"oauthToken,omitempty" redacted:"true"`
Channels []string `mapstructure:"channels,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.