2019-04-24 21:52:08 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// FileSystemNotifierConfiguration represents the configuration of the notifier writing emails in a file.
|
|
|
|
type FileSystemNotifierConfiguration struct {
|
|
|
|
Filename string `yaml:"filename"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// EmailNotifierConfiguration represents the configuration of the email service notifier (like GMAIL API).
|
|
|
|
type EmailNotifierConfiguration struct {
|
|
|
|
Username string `yaml:"username"`
|
|
|
|
Password string `yaml:"password"`
|
|
|
|
Sender string `yaml:"sender"`
|
|
|
|
Service string `yaml:"service"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// SMTPNotifierConfiguration represents the configuration of the SMTP server to send emails with.
|
|
|
|
type SMTPNotifierConfiguration struct {
|
|
|
|
Username string `yaml:"username"`
|
|
|
|
Password string `yaml:"password"`
|
2019-12-20 18:40:01 +00:00
|
|
|
Sender string `yaml:"sender"`
|
2019-04-24 21:52:08 +00:00
|
|
|
Host string `yaml:"host"`
|
|
|
|
Port int `yaml:"port"`
|
2019-12-20 18:40:01 +00:00
|
|
|
Secure bool `yaml:"secure"`
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|
|
|
|
|
2020-01-05 23:03:16 +00:00
|
|
|
// NotifierConfiguration represents the configuration of the notifier to use when sending notifications to users.
|
2019-04-24 21:52:08 +00:00
|
|
|
type NotifierConfiguration struct {
|
|
|
|
FileSystem *FileSystemNotifierConfiguration `yaml:"filesystem"`
|
|
|
|
Email *EmailNotifierConfiguration `yaml:"email"`
|
|
|
|
SMTP *SMTPNotifierConfiguration `yaml:"smtp"`
|
|
|
|
}
|